s3:smb2_sesssetup: allow a compound request after a SessionSetup
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Jun 2017 21:01:18 +0000 (23:01 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 17 Jun 2017 08:55:25 +0000 (10:55 +0200)
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun 17 10:55:25 CEST 2017 on sn-devel-144

source3/smbd/smb2_sesssetup.c

index 53cd7ded2b04767f6ec34ada012ad97ed19bd34f..eda538f17f663c15446c21979e37d809f750fcb5 100644 (file)
@@ -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;
 }