From 64eb58f6ec73ce5a6448a7cedd5a579df35620be Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 15 Jun 2017 23:01:18 +0200 Subject: [PATCH] s3:smb2_sesssetup: allow a compound request after a SessionSetup This is now a full fix yet as we don't allow compound requests after going async. With SMB 3.11 requiring signed TreeConnect requests it's pointless to try to compound requests after a SessionSetup. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12845 Signed-off-by: Stefan Metzmacher --- source3/smbd/smb2_sesssetup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index 53cd7de..450c7b8 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -472,6 +472,8 @@ static NTSTATUS smbd_smb2_auth_generic_return(struct smbXsrv_session *session, return NT_STATUS_LOGON_FAILURE; } + smb2req->last_session_id = session->global->session_wire_id; + /* * we attach the session to the request * so that the response can be signed -- 1.9.1