s3:smb2_server: use req->xconn->client->raw_ev_ctx for smbd_smb2_request_dispatch_imm...
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Mar 2018 09:54:41 +0000 (10:54 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:19 +0000 (08:59 +0200)
smbd_smb2_request_dispatch() will redo the impersonation anyway,
so we don't use req->ev_ctx.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_server.c

index ccbea87bfd0dc74d0a599e8eaa6141b37ec875f0..46b747cabffa96f1133a559fb03a0b16eec1ea44 100644 (file)
@@ -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;