* @param io arguments and results of the call
*/
struct composite_context *libnet_rpc_groupinfo_send(struct dcerpc_pipe *p,
+ TALLOC_CTX *mem_ctx,
struct libnet_rpc_groupinfo *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 c;
s = talloc_zero(c, struct groupinfo_state);
TALLOC_CTX *mem_ctx,
struct libnet_rpc_groupinfo *io)
{
- struct composite_context *c = libnet_rpc_groupinfo_send(p, io, NULL);
+ struct composite_context *c = libnet_rpc_groupinfo_send(p, mem_ctx, io, NULL);
return libnet_rpc_groupinfo_recv(c, mem_ctx, io);
}
s->info.in.level = GROUPINFOALL;
/* send the request */
- info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn);
+ info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, s, &s->info, s->monitor_fn);
if (composite_nomem(info_req, c)) return c;
/* set the next stage */
s->info.in.level = GROUPINFOALL;
/* send the request */
- info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn);
+ info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, s, &s->info, s->monitor_fn);
if (composite_nomem(info_req, c)) return;
/* set the next stage */
s->info.in.level = GROUPINFOALL;
/* send the request */
- info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn);
+ info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, s, &s->info, s->monitor_fn);
if (composite_nomem(info_req, c)) return;
/* set the next stage */