s3: smb2 - Negprot should return INVALID_PARAMETER if flags2 signed bit is set.
authorJeremy Allison <jra@samba.org>
Mon, 16 Jun 2014 21:05:18 +0000 (14:05 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Jun 2014 05:15:13 +0000 (07:15 +0200)
commit37b4c9e08f67efc029851de7bd126aeaaceec2b1
tree6089681420e033753ae2a8ecb5dd4a4a36302e46
parente907f8415639d2a7cbc1cc2e40e2e35bfa0024de
s3: smb2 - Negprot should return INVALID_PARAMETER if flags2 signed bit is set.

MS-SMB2: 3.3.5.2.4 Verifying the Signature.
If the SMB2 header of the SMB2 NEGOTIATE
request has the SMB2_FLAGS_SIGNED bit set in the
Flags field, the server MUST fail the request
with STATUS_INVALID_PARAMETER.

Found and fix confirmed by Microsoft test tool.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source3/smbd/smb2_server.c