diff options
Diffstat (limited to 'source4/libnet/userman.c')
-rw-r--r-- | source4/libnet/userman.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index 22a4efaddb..c6d1922dac 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -373,6 +373,7 @@ static void continue_userdel_deleted(struct tevent_req *subreq) */ struct composite_context *libnet_rpc_userdel_send(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, struct libnet_rpc_userdel *io, void (*monitor)(struct monitor_msg*)) { @@ -381,7 +382,7 @@ struct composite_context *libnet_rpc_userdel_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 userdel_state); @@ -456,7 +457,7 @@ NTSTATUS libnet_rpc_userdel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct libnet_rpc_userdel *io) { - struct composite_context *c = libnet_rpc_userdel_send(p, io, NULL); + struct composite_context *c = libnet_rpc_userdel_send(p, mem_ctx, io, NULL); return libnet_rpc_userdel_recv(c, mem_ctx, io); } |