summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-07-16 04:45:16 +0200
committerStefan Metzmacher <metze@samba.org>2016-04-12 19:25:25 +0200
commit44dd523d6c91745edecb1fc66b4abc54a6a94c30 (patch)
tree4daed2dec88b2e53b6099ed0cd6bc3c78dbf0b14 /source4/smb_server
parent6ad9ba72a7739ca9da5d9c2f3c6c680d69d15251 (diff)
downloadsamba-44dd523d6c91745edecb1fc66b4abc54a6a94c30.tar.gz
CVE-2016-2114: s4:smb2_server: fix session setup with required signing
The client can't sign the session setup request... BUG: https://bugzilla.samba.org/show_bug.cgi?id=11687 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb2/sesssetup.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source4/smb_server/smb2/sesssetup.c b/source4/smb_server/smb2/sesssetup.c
index d4b8de60794..5e261a20e40 100644
--- a/source4/smb_server/smb2/sesssetup.c
+++ b/source4/smb_server/smb2/sesssetup.c
@@ -201,14 +201,6 @@ static void smb2srv_sesssetup_backend(struct smb2srv_request *req, union smb_ses
set SMB2_NEGOTIATE_SIGNING_REQUIRED */
if (io->smb2.in.security_mode & SMB2_NEGOTIATE_SIGNING_REQUIRED) {
smb_sess->smb2_signing.required = true;
- } else if (req->smb_conn->smb2_signing_required) {
- /*
- * if required signing was negotiates in SMB2 Negotiate
- * then the client made an error not using it here
- */
- DEBUG(1, ("SMB2 signing required on the connection but not used on session\n"));
- req->status = NT_STATUS_FOOBAR;
- goto failed;
}
/* disable receipt of more packets on this socket until we've