s3:smbd: disconnect the socket if we got an unexpected request
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Sep 2011 04:37:35 +0000 (06:37 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 15 Oct 2011 18:48:58 +0000 (20:48 +0200)
commit9ee7017a3abb868f9bd15b79ebb9e1654780d131
treec860082f19b1048d9c701ed8a3695e90ca97012e
parent8778996e1bbc01672f68a0c5b01d34f86002b8a1
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)
(cherry picked from commit 8d54841f640212a5c3d026df3fbfd1f7c99ac7f7)
source3/smbd/smb2_negprot.c
source3/smbd/smb2_server.c