From adef841a59d50badc8e5d357a24c617303705f5b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 14 Jan 2014 12:11:17 +0100 Subject: s4:libnet: let libnet_rpc_useradd() take tevent_context/dcerpc_binding_handle This avoids usage/dereferencing 'struct dcerpc_pipe'. Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- source4/libnet/userman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/libnet') diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index abb41429e99..2e1dff75400 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -180,12 +180,12 @@ NTSTATUS libnet_rpc_useradd_recv(struct composite_context *c, TALLOC_CTX *mem_ct * @return nt status code of execution */ -NTSTATUS libnet_rpc_useradd(struct dcerpc_pipe *p, +NTSTATUS libnet_rpc_useradd(struct tevent_context *ev, + struct dcerpc_binding_handle *b, TALLOC_CTX *mem_ctx, struct libnet_rpc_useradd *io) { - struct composite_context *c = libnet_rpc_useradd_send(mem_ctx, p->conn->event_ctx, - p->binding_handle, io, NULL); + struct composite_context *c = libnet_rpc_useradd_send(mem_ctx, ev, b, io, NULL); return libnet_rpc_useradd_recv(c, mem_ctx, io); } -- cgit v1.2.1