From: Stefan Metzmacher Date: Thu, 22 Mar 2018 09:54:41 +0000 (+0100) Subject: s3:smb2_server: use req->xconn->client->raw_ev_ctx for smbd_smb2_request_dispatch_imm... X-Git-Tag: tevent-0.9.37~285 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d5d8d62e4454ceb22884a69f511ae60ac3af698;p=thirdparty%2Fsamba.git s3:smb2_server: use req->xconn->client->raw_ev_ctx for smbd_smb2_request_dispatch_immediate() smbd_smb2_request_dispatch() will redo the impersonation anyway, so we don't use req->ev_ctx. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index ccbea87bfd0..46b747cabff 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -2922,8 +2922,13 @@ static NTSTATUS smbd_smb2_request_reply(struct smbd_smb2_request *req) } } + /* + * smbd_smb2_request_dispatch() will redo the impersonation. + * So we use req->xconn->client->raw_ev_ctx instead + * of req->ev_ctx here. + */ tevent_schedule_immediate(im, - req->sconn->ev_ctx, + req->xconn->client->raw_ev_ctx, smbd_smb2_request_dispatch_immediate, req); return NT_STATUS_OK;