diff options
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clireadwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 2fe41b4763..b68484a905 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -46,7 +46,7 @@ static size_t cli_read_max_bufsize(struct cli_state *cli) data_offset += wct * sizeof(uint16_t); data_offset += 1; /* pad */ - useable_space = cli->max_xmit - data_offset; + useable_space = cli_state_available_size(cli, data_offset); return useable_space; } |