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*))
{
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);
{
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);
}
s->group_add.in.domain_handle = ctx->samr.handle;
/* send the request */
- create_req = libnet_rpc_groupadd_send(ctx->samr.pipe, &s->group_add, monitor);
+ create_req = libnet_rpc_groupadd_send(ctx->samr.pipe, s, &s->group_add, monitor);
if (composite_nomem(create_req, c)) return c;
composite_continue(c, create_req, continue_rpc_group_added, c);
s->group_add.in.domain_handle = s->ctx->samr.handle;
/* send the request */
- create_req = libnet_rpc_groupadd_send(s->ctx->samr.pipe, &s->group_add,
+ create_req = libnet_rpc_groupadd_send(s->ctx->samr.pipe, s, &s->group_add,
s->monitor_fn);
if (composite_nomem(create_req, c)) return;