summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-14 12:11:17 +0100
committerGünther Deschner <gd@samba.org>2014-01-16 16:22:52 +0100
commitadef841a59d50badc8e5d357a24c617303705f5b (patch)
tree63ea41ff0e0b0fc82f6b8566b682a1722285b663 /source4/libnet
parente3b8df2b09457746464ac919d04b8e57ebd643e9 (diff)
downloadsamba-adef841a59d50badc8e5d357a24c617303705f5b.tar.gz
s4:libnet: let libnet_rpc_useradd() 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>
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/userman.c6
1 files changed, 3 insertions, 3 deletions
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);
}