From af03a9b8fbe32d9c7a2bcd1d4cb377b44894d666 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 3 Mar 2006 02:29:48 +0000 Subject: r13803: fixed two errors found with 'make valgrindtest' (This used to be commit 4257fd91ceca34dd868a9168efc28b6cb63f0357) --- source4/dsdb/samdb/ldb_modules/extended_dn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn.c b/source4/dsdb/samdb/ldb_modules/extended_dn.c index 5b288aa311..25a8dd1d36 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn.c @@ -157,7 +157,7 @@ static BOOL inject_extended_dn(struct ldb_message *msg, val = ldb_msg_find_ldb_val(msg, "distinguishedName"); if (val) { ldb_msg_remove_attr(msg, "distinguishedName"); - if (ldb_msg_add_string(msg, "distinguishedName", new_dn)) + if (ldb_msg_add_steal_string(msg, "distinguishedName", new_dn)) return False; } -- cgit