s3:smbd: SMB ReadX with size > 0xffff should only possible for samba clients.
commitf8c26c16b82989e002b839fc9eba6386fc036f6a
authorStefan Metzmacher <metze@samba.org>
Sat, 10 Sep 2011 09:02:02 +0000 (10 11:02 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 14 Sep 2011 19:37:02 +0000 (14 12:37 -0700)
tree4f30c0b2fc79ece16e2ab41ab597c99ec7b883c6
parent555c626af83a2dc7bc81f012dd93d73045a3428f
s3:smbd: SMB ReadX with size > 0xffff should only possible for samba clients.

Windows 2008 R2 (and others) ignore the high bits for the read size.

Unless we're using the unix extentions and the client
uses CIFS_UNIX_LARGE_READ_CAP, we should also ignore
the high bits.

But we still need to support old "smbclient" binaries
and have to check if the client is "Samba".

metze

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c