mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Correctly calculate the max read size
(This used to be commit f556c9e162
)
This commit is contained in:
parent
464f74df2f
commit
973734cde6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user