1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

dsdb: acl_read fix a missed talloc_steal

This commit is contained in:
Matthieu Patou 2011-03-05 22:22:00 +03:00 committed by Matthieu Patou
parent d2e976e32c
commit cbb0f881ac

View File

@ -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++;
}