Fix bug #9572 - File corruption during SMB1 read by Mac OSX 10.8.2 clients.
commit996a10cdea4a1ea23bc86c8bc57c4ca02e285b17
authorJeremy Allison <jra@samba.org>
Wed, 23 Jan 2013 17:57:50 +0000 (23 09:57 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 24 Jan 2013 20:01:51 +0000 (24 21:01 +0100)
tree03083c16870228d2ba64963481d71d57f61b4343
parent033197958ec97140d5632ab875f24350257963dd
Fix bug #9572 - File corruption during SMB1 read by Mac OSX 10.8.2 clients.

Accept a large read if we told the client we have UNIX extensions
and the client sent a non-zero upper 16-bit size.

Do the non-zero upper 16-bit size check first to save a function
call in what is a hot path.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 24 21:01:51 CET 2013 on sn-devel-104
source3/smbd/reply.c