summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/groupman.c5
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);
}