s3:smbd: fix parsing of invalid SMB2 requests.
commit12ed9ca36a4f8d2f3798f357a619389c26c9feea
authorStefan Metzmacher <metze@samba.org>
Wed, 8 Jul 2009 15:02:00 +0000 (8 17:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 10 Jul 2009 10:24:23 +0000 (10 12:24 +0200)
tree2f468119f26d3b0625b793c6f6c07f633a139dab
parentdb1e58256861c50a9baed8efc862ba5b5834e28b
s3:smbd: fix parsing of invalid SMB2 requests.

Because of 0 - 2 => 0xFFFFFFFE, we got EMSGSIZE
from the tstream layer. And terminate the transport
connection. Instead we should let the caller deal with
the invalid parameter, when checking the body size.
So the caller always gets at least a 2 byte body.

metze
source3/smbd/smb2_server.c