summaryrefslogtreecommitdiff
path: root/libcli/cldap
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/cldap')
-rw-r--r--libcli/cldap/cldap.c7
-rw-r--r--libcli/cldap/cldap.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c
index 7436bea407..c73d37466c 100644
--- a/libcli/cldap/cldap.c
+++ b/libcli/cldap/cldap.c
@@ -841,8 +841,9 @@ static void cldap_netlogon_state_done(struct tevent_req *subreq);
queue a cldap netlogon for send
*/
struct tevent_req *cldap_netlogon_send(TALLOC_CTX *mem_ctx,
- struct cldap_socket *cldap,
- const struct cldap_netlogon *io)
+ struct tevent_context *ev,
+ struct cldap_socket *cldap,
+ const struct cldap_netlogon *io)
{
struct tevent_req *req, *subreq;
struct cldap_netlogon_state *state;
@@ -1023,7 +1024,7 @@ NTSTATUS cldap_netlogon(struct cldap_socket *cldap,
return NT_STATUS_PIPE_BUSY;
}
- req = cldap_netlogon_send(mem_ctx, cldap, io);
+ req = cldap_netlogon_send(mem_ctx, cldap->event.ctx, cldap, io);
NT_STATUS_HAVE_NO_MEMORY(req);
if (!tevent_req_poll(req, cldap->event.ctx)) {
diff --git a/libcli/cldap/cldap.h b/libcli/cldap/cldap.h
index 0098da521a..bf259e9aa5 100644
--- a/libcli/cldap/cldap.h
+++ b/libcli/cldap/cldap.h
@@ -114,6 +114,7 @@ struct cldap_netlogon {
};
struct tevent_req *cldap_netlogon_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
struct cldap_socket *cldap,
const struct cldap_netlogon *io);
NTSTATUS cldap_netlogon_recv(struct tevent_req *req,