]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Jun 2017 10:34:22 +0000 (12:34 +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

(cherry picked from commit bb5c394fde03dc8230d5089a66fea1a2541952f5)

source3/smbd/smb2_sesssetup.c

index 6a0caac13084ecdf2531380c3e1a312af2df36cd..c4ae1857b259b9716a025699376f2a509c7a0869 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;
 }