diff options
Diffstat (limited to 'source4/libnet/groupman.c')
-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 c8762f4f14..79fefd76e8 100644 --- a/source4/libnet/groupman.c +++ b/source4/libnet/groupman.c @@ -42,6 +42,7 @@ static void continue_groupadd_created(struct tevent_req *subreq); struct composite_context* libnet_rpc_groupadd_send(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, struct libnet_rpc_groupadd *io, void (*monitor)(struct monitor_msg*)) { @@ -51,7 +52,7 @@ struct composite_context* libnet_rpc_groupadd_send(struct dcerpc_pipe *p, if (!p || !io) return NULL; - 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 groupadd_state); @@ -125,7 +126,7 @@ NTSTATUS libnet_rpc_groupadd(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, { struct composite_context *c; - c = libnet_rpc_groupadd_send(p, io, NULL); + c = libnet_rpc_groupadd_send(p, mem_ctx, io, NULL); return libnet_rpc_groupadd_recv(c, mem_ctx, io); } |