summaryrefslogtreecommitdiff
path: root/source4/torture/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:51 +0100
commite3b8df2b09457746464ac919d04b8e57ebd643e9 (patch)
treefef0ffd1d5b3b89c2805886cd8118b832814631b /source4/torture/libnet
parent208991e497d137d27bc5afb33d4cbf32de67ddee (diff)
downloadsamba-e3b8df2b09457746464ac919d04b8e57ebd643e9.tar.gz
s4:libnet: let libnet_rpc_useradd_send() 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/torture/libnet')
-rw-r--r--source4/torture/libnet/userman.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c
index 4bb5193ed9d..00f19d9bd6b 100644
--- a/source4/torture/libnet/userman.c
+++ b/source4/torture/libnet/userman.c
@@ -65,7 +65,8 @@ static bool test_useradd_async(struct torture_context *tctx,
torture_comment(tctx, "Testing async libnet_rpc_useradd\n");
- c = libnet_rpc_useradd_send(p, mem_ctx, &user, msg_handler);
+ c = libnet_rpc_useradd_send(mem_ctx, tctx->ev, p->binding_handle,
+ &user, msg_handler);
if (!c) {
torture_comment(tctx, "Failed to call async libnet_rpc_useradd\n");
return false;