summaryrefslogtreecommitdiffstats
path: root/source4/winbind/wb_cmd_lookupname.c
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
commitad14fb95453a9c3a0902047520bb460eca181c31 (patch)
tree85075c01e0dae6cdeb166ca1e0d009a7e60c875c /source4/winbind/wb_cmd_lookupname.c
parent5559cdf5c2d3569f4e365f39c8515fe2917221f3 (diff)
downloadsamba-ad14fb95453a9c3a0902047520bb460eca181c31.tar.gz
samba-ad14fb95453a9c3a0902047520bb460eca181c31.tar.xz
samba-ad14fb95453a9c3a0902047520bb460eca181c31.zip
s4:winbind: let wb_lsa_lookupnames_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/winbind/wb_cmd_lookupname.c')
-rw-r--r--source4/winbind/wb_cmd_lookupname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/winbind/wb_cmd_lookupname.c b/source4/winbind/wb_cmd_lookupname.c
index 5178187ea8b..7761dcea4f1 100644
--- a/source4/winbind/wb_cmd_lookupname.c
+++ b/source4/winbind/wb_cmd_lookupname.c
@@ -75,7 +75,8 @@ static void lookupname_recv_domain(struct composite_context *ctx)
state->ctx->status = wb_sid2domain_recv(ctx, &domain);
if (!composite_is_ok(state->ctx)) return;
- ctx = wb_lsa_lookupnames_send(state, domain->libnet_ctx->lsa.pipe,
+ ctx = wb_lsa_lookupnames_send(state, state->ctx->event_ctx,
+ domain->libnet_ctx->lsa.lsa_handle,
&domain->libnet_ctx->lsa.handle, 1, &state->name);
composite_continue(state->ctx, ctx, lookupname_recv_sids, state);
}