s3-libsmb Do not limit read replies to NBT packet sizes
authorAndrew Bartlett <abartlet@samba.org>
Fri, 27 Jan 2012 02:53:34 +0000 (13:53 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Mar 2012 19:55:39 +0000 (20:55 +0100)
commit366c9a7fb61f50beab45f42fcf2e94f2f09ff9e1
treec9118bdbcfda33bdc7236617d765a870ab5243a8
parent8a5975a7760d5f8f9c78dd0aadd785ca3a97a47c
s3-libsmb Do not limit read replies to NBT packet sizes

With the posix extensions, we can read 16MB at a time, so we need to
check the full size of the packet, not the size rounded down to the
old NBT limit.

Andrew Bartlett

Fix bug #8727 (smbclient fails with posix large reads).
(cherry picked from commit 3394bbf45dd219dc0293809fe2c50ad3ab7cede6)
source3/libsmb/clireadwrite.c