diff options
-rw-r--r-- | source4/winbind/wb_server.c | 3 | ||||
-rw-r--r-- | source4/winbind/wb_server.h | 3 |
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; |