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:51 +0100
commit959d94b153aa1add5caeac528e966e79298ce7ca (patch)
tree0999732798cfdd4653a094a50499bbcd1c106454 /source4/libnet
parent0b3b0d225f8485ab0cf392b26f72f7dd5d9c180f (diff)
downloadsamba-959d94b153aa1add5caeac528e966e79298ce7ca.tar.gz
s4:libnet: let libnet_rpc_groupinfo() 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/groupinfo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/libnet/groupinfo.c b/source4/libnet/groupinfo.c
index 4e5fea63211..3d2968b82f4 100644
--- a/source4/libnet/groupinfo.c
+++ b/source4/libnet/groupinfo.c
@@ -373,13 +373,12 @@ NTSTATUS libnet_rpc_groupinfo_recv(struct composite_context *c, TALLOC_CTX *mem_
* @return nt status code of execution
*/
-NTSTATUS libnet_rpc_groupinfo(struct dcerpc_pipe *p,
+NTSTATUS libnet_rpc_groupinfo(struct tevent_context *ev,
+ struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx,
struct libnet_rpc_groupinfo *io)
{
- struct composite_context *c = libnet_rpc_groupinfo_send(mem_ctx,
- p->conn->event_ctx,
- p->binding_handle,
+ struct composite_context *c = libnet_rpc_groupinfo_send(mem_ctx, ev, b,
io, NULL);
return libnet_rpc_groupinfo_recv(c, mem_ctx, io);
}