s4-dsdb: Use ldb_dn_copy() rather than talloc_reference()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 14 Aug 2012 07:49:12 +0000 (17:49 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Aug 2012 13:37:22 +0000 (15:37 +0200)
commit3c8d8f206b79280604cb79f263e74aa2b681726e
tree9806ef24053635d34271dc3105c54aece71bebe5
parent0668f98d112f29f3fc7c306f69a9bea29eb8e2e1
s4-dsdb: Use ldb_dn_copy() rather than talloc_reference()

As the normal case (outside provision) uses a copy, this avoids a case
where a caller might modify a global variable accidentily.

As suggested by metze.

Andrew Bartlett
source4/dsdb/common/util.c