s3:smbd: disconnect the socket if we got an unexpected request
commit8d54841f640212a5c3d026df3fbfd1f7c99ac7f7
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Sep 2011 04:37:35 +0000 (23 06:37 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Oct 2011 18:09:46 +0000 (13 20:09 +0200)
treea4ac396c49b484835858e8552cea366449ccf363
parent84b4cd03a17e84ffd311b99ec73846a29507418d
s3:smbd: disconnect the socket if we got an unexpected request

If we got a SMB2_OP_NEGPROT after the protocol is already negotiated
or if we got a non SMB2_OP_NEGPROT before the protocol was negotiated
we should close the connection (as windows does).

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Sep 23 12:30:50 CEST 2011 on sn-devel-104
(cherry picked from commit 5494856294384df4360d85e68abc03c43dc16e06)
source3/smbd/smb2_negprot.c
source3/smbd/smb2_server.c