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)
committerStefan Metzmacher <metze@samba.org>
Fri, 23 Sep 2011 10:30:50 +0000 (12:30 +0200)
commit5494856294384df4360d85e68abc03c43dc16e06
treee44e982e13c2fae2949fbd826344667f992c99a4
parent02d83d8fd4d21825110fd7da1ccb570a26e66ca6
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
source3/smbd/smb2_negprot.c
source3/smbd/smb2_server.c