summaryrefslogtreecommitdiffstats
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
commitd9573ae076cec193e5970ddb393452a0f2d98c08 (patch)
treee1364e606335ac465b00afe66dd0e838de01bdd3 /source4/libnet
parentf33a558750435600ab63f26abd71de9f4f0a30f6 (diff)
downloadsamba-d9573ae076cec193e5970ddb393452a0f2d98c08.tar.gz
samba-d9573ae076cec193e5970ddb393452a0f2d98c08.tar.xz
samba-d9573ae076cec193e5970ddb393452a0f2d98c08.zip
s4:libnet: let libnet_rpc_usermod() 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 3058060b9d5..39be78f6707 100644
--- a/source4/libnet/userman.c
+++ b/source4/libnet/userman.c
@@ -912,11 +912,11 @@ NTSTATUS libnet_rpc_usermod_recv(struct composite_context *c, TALLOC_CTX *mem_ct
* @return nt status code of execution
*/
-NTSTATUS libnet_rpc_usermod(struct dcerpc_pipe *p,
+NTSTATUS libnet_rpc_usermod(struct tevent_context *ev,
+ struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx,
struct libnet_rpc_usermod *io)
{
- struct composite_context *c = libnet_rpc_usermod_send(mem_ctx, p->conn->event_ctx,
- p->binding_handle, io, NULL);
+ struct composite_context *c = libnet_rpc_usermod_send(mem_ctx, ev, b, io, NULL);
return libnet_rpc_usermod_recv(c, mem_ctx, io);
}