mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
s4-libnet: Add mem_ctx to libnet_rpc_groupdel calls (bug #8889)
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 30 14:41:36 CEST 2012 on sn-devel-104
This commit is contained in:
parent
566f066a8d
commit
887487851f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user