diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-05 09:59:30 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@sn-devel-104.sn.samba.org> | 2010-10-05 08:43:19 +0000 |
commit | ca035b35fe646afc1222ce6b16c818b6629a3039 (patch) | |
tree | 4a77cbac67d4f432c112883ed9d8084ad45d205e | |
parent | 0e5b77bec44863b1ad440e45fd0933f07e797261 (diff) | |
download | samba-ca035b35fe646afc1222ce6b16c818b6629a3039.tar.gz samba-ca035b35fe646afc1222ce6b16c818b6629a3039.tar.bz2 samba-ca035b35fe646afc1222ce6b16c818b6629a3039.zip |
s4:samldb LDB module - assign better memory contexts on two places
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 06f70a5311..0e4d852d15 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -721,7 +721,7 @@ static int samldb_fill_object(struct samldb_ctx *ac, const char *type) * caller. Use the entry DN for it. */ ac->dn = ac->msg->dn; - ret = samdb_msg_add_string(ldb, ac, ac->msg, + ret = samdb_msg_add_string(ldb, ac->msg, ac->msg, "defaultObjectCategory", ldb_dn_get_linearized(ac->dn)); if (ret != LDB_SUCCESS) { @@ -745,7 +745,7 @@ static int samldb_fill_object(struct samldb_ctx *ac, const char *type) if (!ldb_msg_find_element(ac->msg, "lDAPDisplayName")) { /* the RDN has prefix "CN" */ ret = ldb_msg_add_string(ac->msg, "lDAPDisplayName", - samdb_cn_to_lDAPDisplayName(ac, + samdb_cn_to_lDAPDisplayName(ac->msg, (const char *) rdn_value->data)); if (ret != LDB_SUCCESS) { ldb_oom(ldb); |