summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-14 22:26:44 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-24 20:03:27 +0000
commit7b3dbbde04d52f9faeeba507b82bc4242b1efddd (patch)
treebc4cdf8df835569fba8e43e6665909ae288f598c /source4/dsdb
parent177aad556f4be8b6b82eec8fbf0bf4711ae32d2b (diff)
downloadsamba-7b3dbbde04d52f9faeeba507b82bc4242b1efddd.tar.gz
samba-7b3dbbde04d52f9faeeba507b82bc4242b1efddd.tar.bz2
samba-7b3dbbde04d52f9faeeba507b82bc4242b1efddd.zip
s4:dsdb - remove some calls of "samdb_msg_add_string" when we have talloc'ed strings
They can be substituted by "ldb_msg_add_string" if the string was already talloc'ed. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 24 20:03:27 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 21b6506fb9..2357ffd7d9 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -604,9 +604,8 @@ static int samldb_fill_object(struct samldb_ctx *ac)
* caller. Use the entry DN for it. */
ac->dn = ac->msg->dn;
- ret = samdb_msg_add_string(ldb, ac->msg, ac->msg,
- "defaultObjectCategory",
- ldb_dn_get_linearized(ac->dn));
+ ret = ldb_msg_add_string(ac->msg, "defaultObjectCategory",
+ ldb_dn_alloc_linearized(ac, ac->dn));
if (ret != LDB_SUCCESS) {
ldb_oom(ldb);
return ret;