From 973734cde620585e409d2c125184a2388ab26041 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 8 Mar 2008 22:28:01 +0100 Subject: [PATCH] Correctly calculate the max read size (This used to be commit f556c9e162e2bc0d16710e994a00edc33a146cd5) --- source3/libsmb/clireadwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index c618509f018..9bd81706730 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; }