From: Stefan Metzmacher Date: Thu, 15 Jun 2017 21:01:18 +0000 (+0200) Subject: s3:smb2_sesssetup: allow a compound request after a SessionSetup X-Git-Tag: tevent-0.9.32~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb5c394fde03dc8230d5089a66fea1a2541952f5;p=thirdparty%2Fsamba.git s3:smb2_sesssetup: allow a compound request after a SessionSetup This is not 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Jun 17 10:55:25 CEST 2017 on sn-devel-144 --- diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index 53cd7ded2b0..eda538f17f6 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -483,6 +483,7 @@ static NTSTATUS smbd_smb2_auth_generic_return(struct smbXsrv_session *session, global_client_caps |= (CAP_LEVEL_II_OPLOCKS|CAP_STATUS32); *out_session_id = session->global->session_wire_id; + smb2req->last_session_id = session->global->session_wire_id; return NT_STATUS_OK; }