summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-03 02:29:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:12 -0500
commitaf03a9b8fbe32d9c7a2bcd1d4cb377b44894d666 (patch)
treeabb897c6760b86d7e546a129660efcebf1d7d5c4
parentb223f8fdc237bfa67066ed1c80d93297b6b9f72c (diff)
downloadsamba-af03a9b8fbe32d9c7a2bcd1d4cb377b44894d666.tar.gz
samba-af03a9b8fbe32d9c7a2bcd1d4cb377b44894d666.tar.bz2
samba-af03a9b8fbe32d9c7a2bcd1d4cb377b44894d666.zip
r13803: fixed two errors found with 'make valgrindtest'
(This used to be commit 4257fd91ceca34dd868a9168efc28b6cb63f0357)
-rw-r--r--source4/dsdb/samdb/ldb_modules/extended_dn.c2
-rw-r--r--source4/lib/ldb/common/ldb_msg.c2
2 files changed, 2 insertions, 2 deletions
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;
}
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c
index 8c59518296..f76d7e8dd9 100644
--- a/source4/lib/ldb/common/ldb_msg.c
+++ b/source4/lib/ldb/common/ldb_msg.c
@@ -263,7 +263,7 @@ int ldb_msg_add_fmt(struct ldb_message *msg,
val.data = (uint8_t *)str;
val.length = strlen(str);
- return ldb_msg_add_value(msg, attr_name, &val);
+ return ldb_msg_add_steal_value(msg, attr_name, &val);
}
/*