summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-09-22 19:36:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:45 -0500
commitfdeff0fa50773a6bbaa22d7ff5bcd3766443a8f9 (patch)
tree83aebdb6c29d1698f69bdfd523f12d489a05850e
parentbcf0615be578a35bb6ab0f559e370f1b9455f3cd (diff)
downloadsamba-fdeff0fa50773a6bbaa22d7ff5bcd3766443a8f9.tar.gz
samba-fdeff0fa50773a6bbaa22d7ff5bcd3766443a8f9.tar.bz2
samba-fdeff0fa50773a6bbaa22d7ff5bcd3766443a8f9.zip
r10434: add a short path to the event context that should be used for async replies
metze (This used to be commit cc9579d08567ec38adf0617901669fb3bb91e489)
-rw-r--r--source4/winbind/wb_server.c3
-rw-r--r--source4/winbind/wb_server.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/winbind/wb_server.c b/source4/winbind/wb_server.c
index ee9a1863d5..d8d8f19465 100644
--- a/source4/winbind/wb_server.c
+++ b/source4/winbind/wb_server.c
@@ -123,7 +123,8 @@ static void wbsrv_recv(struct stream_connection *conn, uint16_t flags)
/* we have a full request - parse it */
status = ops->pull_request(wbconn->partial, wbconn, &call);
if (!NT_STATUS_IS_OK(status)) goto failed;
- call->wbconn = wbconn;
+ call->wbconn = wbconn;
+ call->event_ctx = conn->event.ctx;
/*
* we have parsed the request, so we can reset the wbconn->partial_read,
diff --git a/source4/winbind/wb_server.h b/source4/winbind/wb_server.h
index 2369e228c1..2c93c02323 100644
--- a/source4/winbind/wb_server.h
+++ b/source4/winbind/wb_server.h
@@ -107,6 +107,9 @@ struct wbsrv_call {
#define WBSRV_CALL_FLAGS_REPLY_ASYNC 0x00000001
uint32_t flags;
+ /* the backend should use this event context */
+ struct event_context *event_ctx;
+
/* the connection the call belongs to */
struct wbsrv_connection *wbconn;