diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-23 20:51:30 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-10-02 15:11:22 +0200 |
commit | 4a7b792bc6d463a3aa4e1150a271ed6b929276cc (patch) | |
tree | 01816c15888c469ff841348690376218366ae268 | |
parent | 7c0277c923443402b8a292fd3b3b1faba1da6dd5 (diff) | |
download | samba-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>
-rw-r--r-- | source3/smbd/smb2_server.c | 2 |
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) { |