diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-10 15:42:57 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-10 21:50:26 +0200 |
commit | 2cd76b0931582463a6e72df227f3e100dfb00f84 (patch) | |
tree | 56f495ae36b37ae59684be3fdea831500eee0871 /source4 | |
parent | 3ed85d7c69f9b68a709572ab221b9da1c17a146e (diff) | |
download | samba-2cd76b0931582463a6e72df227f3e100dfb00f84.tar.gz samba-2cd76b0931582463a6e72df227f3e100dfb00f84.tar.bz2 samba-2cd76b0931582463a6e72df227f3e100dfb00f84.zip |
libcli/cldap: pass tevent_context to cldap_netlogon_send()
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/finddcs_cldap.c | 3 | ||||
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 3 | ||||
-rw-r--r-- | source4/libnet/libnet_unbecome_dc.c | 3 | ||||
-rw-r--r-- | source4/torture/ldap/cldapbench.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index 293641b37f..ee5278f051 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -234,7 +234,8 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state) DEBUG(4,("finddcs: performing CLDAP query on %s\n", state->netlogon->in.dest_address)); - subreq = cldap_netlogon_send(state, state->cldap, state->netlogon); + subreq = cldap_netlogon_send(state, state->ev, + state->cldap, state->netlogon); if (tevent_req_nomem(subreq, state->req)) { return; } diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 34ca97c274..6f70f32903 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -777,7 +777,8 @@ static void becomeDC_send_cldap(struct libnet_BecomeDC_state *s) NULL, dest_address, &s->cldap.sock); if (!composite_is_ok(c)) return; - req = cldap_netlogon_send(s, s->cldap.sock, &s->cldap.io); + req = cldap_netlogon_send(s, s->libnet->event_ctx, + s->cldap.sock, &s->cldap.io); if (composite_nomem(req, c)) return; tevent_req_set_callback(req, becomeDC_recv_cldap, s); } diff --git a/source4/libnet/libnet_unbecome_dc.c b/source4/libnet/libnet_unbecome_dc.c index 85d47a91f9..be28907b5b 100644 --- a/source4/libnet/libnet_unbecome_dc.c +++ b/source4/libnet/libnet_unbecome_dc.c @@ -285,7 +285,8 @@ static void unbecomeDC_send_cldap(struct libnet_UnbecomeDC_state *s) NULL, dest_address, &s->cldap.sock); if (!composite_is_ok(c)) return; - req = cldap_netlogon_send(s, s->cldap.sock, &s->cldap.io); + req = cldap_netlogon_send(s, s->libnet->event_ctx, + s->cldap.sock, &s->cldap.io); if (composite_nomem(req, c)) return; tevent_req_set_callback(req, unbecomeDC_recv_cldap, s); } diff --git a/source4/torture/ldap/cldapbench.c b/source4/torture/ldap/cldapbench.c index 7d02a2580b..118881d034 100644 --- a/source4/torture/ldap/cldapbench.c +++ b/source4/torture/ldap/cldapbench.c @@ -87,7 +87,8 @@ static bool bench_cldap_netlogon(struct torture_context *tctx, const char *addre while (timeval_elapsed(&tv) < timelimit) { while (num_sent - (state->pass_count+state->fail_count) < 10) { struct tevent_req *req; - req = cldap_netlogon_send(state, cldap, &search); + req = cldap_netlogon_send(state, tctx->ev, + cldap, &search); tevent_req_set_callback(req, request_netlogon_handler, state); |