From fdeff0fa50773a6bbaa22d7ff5bcd3766443a8f9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Sep 2005 19:36:43 +0000 Subject: r10434: add a short path to the event context that should be used for async replies metze (This used to be commit cc9579d08567ec38adf0617901669fb3bb91e489) --- source4/winbind/wb_server.c | 3 ++- source4/winbind/wb_server.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/winbind') 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; -- cgit