summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-08 22:28:01 +0100
committerVolker Lendecke <vl@samba.org>2008-03-08 22:28:01 +0100
commit973734cde620585e409d2c125184a2388ab26041 (patch)
treeffbb69c1d59e32af50a4b7a6b5317b5d48172fab
parent464f74df2f6f50525c3701025860fe0435d9c91c (diff)
downloadsamba-973734cde620585e409d2c125184a2388ab26041.tar.gz
samba-973734cde620585e409d2c125184a2388ab26041.tar.bz2
samba-973734cde620585e409d2c125184a2388ab26041.zip
Correctly calculate the max read size
(This used to be commit f556c9e162e2bc0d16710e994a00edc33a146cd5)
-rw-r--r--source3/libsmb/clireadwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index c618509f01..9bd8170673 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -24,7 +24,7 @@
****************************************************************************/
static size_t cli_read_max_bufsize(struct cli_state *cli)
{
- if (!client_is_signing_on(cli) && !cli_encryption_on(cli) == false
+ if (!client_is_signing_on(cli) && !cli_encryption_on(cli)
&& (cli->posix_capabilities & CIFS_UNIX_LARGE_READ_CAP)) {
return CLI_SAMBA_MAX_POSIX_LARGE_READX_SIZE;
}