From c0d88e2cf9adca50cb9f23f14dbb5c6074124620 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 --- source/winbind/wb_server.c | 3 ++- source/winbind/wb_server.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'source/winbind') diff --git a/source/winbind/wb_server.c b/source/winbind/wb_server.c index ee9a1863d54..d8d8f194657 100644 --- a/source/winbind/wb_server.c +++ b/source/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/source/winbind/wb_server.h b/source/winbind/wb_server.h index 2369e228c14..2c93c02323a 100644 --- a/source/winbind/wb_server.h +++ b/source/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