summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-03-05 22:22:00 +0300
committerMatthieu Patou <mat@samba.org>2011-03-20 11:27:26 +0100
commitcbb0f881ac50fd8704769de45e1dd66a0e2ff6a9 (patch)
tree451a76c5a5ed7af2612a35a8c9c4e8063bb860f4 /source4/dsdb/samdb/ldb_modules
parentd2e976e32c552ba44596973628e3061f61a267b5 (diff)
downloadsamba-cbb0f881ac50fd8704769de45e1dd66a0e2ff6a9.tar.gz
samba-cbb0f881ac50fd8704769de45e1dd66a0e2ff6a9.tar.bz2
samba-cbb0f881ac50fd8704769de45e1dd66a0e2ff6a9.zip
dsdb: acl_read fix a missed talloc_steal
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl_read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl_read.c b/source4/dsdb/samdb/ldb_modules/acl_read.c
index 4ed057cf63..ae618ec639 100644
--- a/source4/dsdb/samdb/ldb_modules/acl_read.c
+++ b/source4/dsdb/samdb/ldb_modules/acl_read.c
@@ -192,6 +192,7 @@ static int aclread_callback(struct ldb_request *req, struct ldb_reply *ares)
bool to_remove = aclread_is_inaccessible(&msg->elements[i]);
if (!to_remove) {
ret_msg->elements[k] = msg->elements[i];
+ talloc_steal(ret_msg->elements, msg->elements[i].name);
talloc_steal(ret_msg->elements, msg->elements[i].values);
k++;
}