summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-10 15:42:57 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-10 21:50:26 +0200
commit2cd76b0931582463a6e72df227f3e100dfb00f84 (patch)
tree56f495ae36b37ae59684be3fdea831500eee0871 /libcli
parent3ed85d7c69f9b68a709572ab221b9da1c17a146e (diff)
downloadsamba-2cd76b0931582463a6e72df227f3e100dfb00f84.tar.gz
samba-2cd76b0931582463a6e72df227f3e100dfb00f84.tar.bz2
samba-2cd76b0931582463a6e72df227f3e100dfb00f84.zip
libcli/cldap: pass tevent_context to cldap_netlogon_send()
metze
Diffstat (limited to 'libcli')
-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,