diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-06 21:46:02 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-10 11:12:05 +0100 |
commit | e00893d8395ed813a5bc9dd7bf28f29de369db46 (patch) | |
tree | 413471ea80b96d4010c8a34850ff1680158768cf | |
parent | 0cec6107d870ba2e67859b824306cde0686691cb (diff) | |
download | samba-e00893d8395ed813a5bc9dd7bf28f29de369db46.tar.gz samba-e00893d8395ed813a5bc9dd7bf28f29de369db46.tar.bz2 samba-e00893d8395ed813a5bc9dd7bf28f29de369db46.zip |
s4:extended_dn_store LDB module - use the new request as generic memory contexts
To prevent memory leaks under valgrind.
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/extended_dn_store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c index b4f71e9319..c4235201d9 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c @@ -345,7 +345,7 @@ static int extended_dn_add(struct ldb_module *module, struct ldb_request *req) /* Re-calculate el */ el = &ac->new_req->op.add.message->elements[i]; for (j = 0; j < el->num_values; j++) { - ret = extended_store_replace(ac, ac->new_req->op.add.message->elements, &el->values[j], + ret = extended_store_replace(ac, ac->new_req, &el->values[j], false, schema_attr->syntax->ldap_oid); if (ret != LDB_SUCCESS) { return ret; @@ -429,7 +429,7 @@ static int extended_dn_modify(struct ldb_module *module, struct ldb_request *req * input of an extended DN */ bool is_delete = (LDB_FLAG_MOD_TYPE(el->flags) == LDB_FLAG_MOD_DELETE); - ret = extended_store_replace(ac, req->op.mod.message->elements, &el->values[j], + ret = extended_store_replace(ac, ac->new_req, &el->values[j], is_delete, schema_attr->syntax->ldap_oid); if (ret != LDB_SUCCESS) { talloc_free(ac); |