diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-30 20:29:56 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-30 14:41:36 +0200 |
commit | 887487851f57bb5640992f25d9dbb5ecaf478603 (patch) | |
tree | f27a22d5d5483cea05a8dc1f266aeb1464144fb7 /source4/libnet | |
parent | 566f066a8dae5e2ac5ee633f781387cad6c686b7 (diff) | |
download | samba-887487851f57bb5640992f25d9dbb5ecaf478603.tar.gz samba-887487851f57bb5640992f25d9dbb5ecaf478603.tar.bz2 samba-887487851f57bb5640992f25d9dbb5ecaf478603.zip |
s4-libnet: Add mem_ctx to libnet_rpc_groupdel calls (bug #8889)
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 30 14:41:36 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/groupman.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libnet/groupman.c b/source4/libnet/groupman.c index 79fefd76e8..97236bd7ad 100644 --- a/source4/libnet/groupman.c +++ b/source4/libnet/groupman.c @@ -150,6 +150,7 @@ static void continue_groupdel_deleted(struct tevent_req *subreq); struct composite_context* libnet_rpc_groupdel_send(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, struct libnet_rpc_groupdel *io, void (*monitor)(struct monitor_msg*)) { @@ -158,7 +159,7 @@ struct composite_context* libnet_rpc_groupdel_send(struct dcerpc_pipe *p, struct tevent_req *subreq; /* composite context allocation and setup */ - c = composite_create(p, dcerpc_event_context(p)); + c = composite_create(mem_ctx, dcerpc_event_context(p)); if (c == NULL) return NULL; s = talloc_zero(c, struct groupdel_state); @@ -320,6 +321,6 @@ NTSTATUS libnet_rpc_groupdel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, { struct composite_context *c; - c = libnet_rpc_groupdel_send(p, io, NULL); + c = libnet_rpc_groupdel_send(p, mem_ctx, io, NULL); return libnet_rpc_groupdel_recv(c, mem_ctx, io); } |