]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2_server: don't rely on the SMB2_HDR_FLAG_SIGNED if signing is required
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Sep 2013 18:51:30 +0000 (20:51 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 May 2015 14:34:29 +0000 (16:34 +0200)
Windows (at least the test suites) may skip the SMB2_HDR_FLAG_SIGNED
in a reauth session setup, but still provide a valid signature.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 4a7b792bc6d463a3aa4e1150a271ed6b929276cc)

source3/smbd/smb2_server.c

index 1e4bedae39cea7cdbaecf11245ef4a03034dccd6..9c4e18713d8251219d8224ac0ec6768d12973308 100644 (file)
@@ -1970,7 +1970,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
 
        if (req->do_encryption) {
                signing_required = false;
-       } else if (flags & SMB2_HDR_FLAG_SIGNED) {
+       } else if (signing_required || (flags & SMB2_HDR_FLAG_SIGNED)) {
                DATA_BLOB signing_key;
 
                if (x == NULL) {