]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: talloc_steal the extra_data in winbindd_list_users_recv()
authorStefan Metzmacher <metze@samba.org>
Tue, 10 Jan 2017 08:48:33 +0000 (09:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jan 2017 08:58:18 +0000 (09:58 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12501

Pair-Programmed-With: Andreas Schneider <asn@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_list_users.c

index 4a4343e66587c6e0a90f040a3d08fe89515298e7..9a751a75c5bc6578b5f6fcbca62fb027641a77d0 100644 (file)
@@ -174,7 +174,7 @@ NTSTATUS winbindd_list_users_recv(struct tevent_req *req,
 
        len = talloc_get_size(result);
 
-       response->extra_data.data = result;
+       response->extra_data.data = talloc_steal(response, result);
        response->length += len;
        response->data.num_entries = 0;