diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-09-22 19:36:43 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2005-09-22 19:36:43 +0000 |
commit | c0d88e2cf9adca50cb9f23f14dbb5c6074124620 (patch) | |
tree | 46a0f4ddb15fe63416f1dd3ae6a2d968e43d702f /source/winbind | |
parent | 863256534629f2950aca59456564e1bf1657e64b (diff) | |
download | samba-c0d88e2cf9adca50cb9f23f14dbb5c6074124620.tar.gz samba-c0d88e2cf9adca50cb9f23f14dbb5c6074124620.tar.xz samba-c0d88e2cf9adca50cb9f23f14dbb5c6074124620.zip |
r10434: add a short path to the event context that should be used for async replies
metze
Diffstat (limited to 'source/winbind')
-rw-r--r-- | source/winbind/wb_server.c | 3 | ||||
-rw-r--r-- | source/winbind/wb_server.h | 3 |
2 files changed, 5 insertions, 1 deletions
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; |