summaryrefslogtreecommitdiff
path: root/source/lib/ldb/modules/operational.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-02-22 09:28:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:59 -0500
commit424df1bb369fddcfd358cf26dd0da9d3851d181e (patch)
tree77017d944849a071c0fc92d102b1654f506f3f46 /source/lib/ldb/modules/operational.c
parentd5b467b7c132b0bd4d23918ba7bf3370b1afcce8 (diff)
downloadsamba-424df1bb369fddcfd358cf26dd0da9d3851d181e.tar.gz
r13616: Add new ldb functions: ldb_msg_add_steal_string() and
ldb_msg_add_steal_value(). These try to maintain the talloc heirachy, which must be correct otherwise talloc_steal operations of entire attribute lists fails. This fixes the currentTime value, found by using Microsoft's dcdiag tool (before this commit, it pointed to invalid memory, due to the changes in -r 13606) Andrew Bartlett
Diffstat (limited to 'source/lib/ldb/modules/operational.c')
-rw-r--r--source/lib/ldb/modules/operational.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/ldb/modules/operational.c b/source/lib/ldb/modules/operational.c
index 3deb9422f3a..8b7d6b35182 100644
--- a/source/lib/ldb/modules/operational.c
+++ b/source/lib/ldb/modules/operational.c
@@ -86,7 +86,7 @@ static int construct_canonical_name(struct ldb_module *module, struct ldb_messag
if (canonicalName == NULL) {
return -1;
}
- return ldb_msg_add_string(msg, "canonicalName", canonicalName);
+ return ldb_msg_add_steal_string(msg, "canonicalName", canonicalName);
}
/*