summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-23 20:51:30 +0200
committerStefan Metzmacher <metze@samba.org>2013-10-02 15:11:22 +0200
commit4a7b792bc6d463a3aa4e1150a271ed6b929276cc (patch)
tree01816c15888c469ff841348690376218366ae268 /source3/smbd/smb2_server.c
parent7c0277c923443402b8a292fd3b3b1faba1da6dd5 (diff)
downloadsamba-4a7b792bc6d463a3aa4e1150a271ed6b929276cc.tar.gz
samba-4a7b792bc6d463a3aa4e1150a271ed6b929276cc.tar.bz2
samba-4a7b792bc6d463a3aa4e1150a271ed6b929276cc.zip
s3:smb2_server: don't rely on the SMB2_HDR_FLAG_SIGNED if signing is required
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>
Diffstat (limited to 'source3/smbd/smb2_server.c')
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index b031c6d153..cf5e37e5a4 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -1993,7 +1993,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) {