s4-ldb: fixed 2 bugs in ldb_dn_set_extended_component()
commitc59372b0b87ca85c1b9061545b6714f00736bb35
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Dec 2009 06:23:00 +0000 (10 17:23 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 10 Dec 2009 06:51:30 +0000 (10 17:51 +1100)
tree9bf83aa4c8c96788d67cb090d7402c8f2f94e71f
parent62dc7f6b2dd7df83740e4761988eb2f87205c73c
s4-ldb: fixed 2 bugs in ldb_dn_set_extended_component()

The first bug was that setting a component twice could cause it to
appear twice in the DN.

The second bug was that using an existing ldb_val from a previous call
of ldb_dn_get_extended_component() as an argument to
ldb_dn_set_extended_component() would cause a valgrind error (as the
array the val pointed into will change).
source4/lib/ldb/common/ldb_dn.c