1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

s4:libnet: let libnet_rpc_groupadd() take tevent_context/dcerpc_binding_handle

This avoids usage/dereferencing 'struct dcerpc_pipe'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher
2014-01-14 12:11:17 +01:00
committed by Günther Deschner
parent 1c6a2f8bca
commit 7a97662bb5
2 changed files with 11 additions and 6 deletions

View File

@ -127,13 +127,14 @@ static void continue_groupadd_created(struct tevent_req *subreq)
}
NTSTATUS libnet_rpc_groupadd(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
NTSTATUS libnet_rpc_groupadd(struct tevent_context *ev,
struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx,
struct libnet_rpc_groupadd *io)
{
struct composite_context *c;
c = libnet_rpc_groupadd_send(mem_ctx, p->conn->event_ctx,
p->binding_handle, io, NULL);
c = libnet_rpc_groupadd_send(mem_ctx, ev, b, io, NULL);
return libnet_rpc_groupadd_recv(c, mem_ctx, io);
}