diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-13 11:38:21 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-13 13:16:09 +0200 |
commit | c887e37275378ddaf772309738bc2cd92d5e2819 (patch) | |
tree | 0169dd9e6463d9100ab3a7300c208d1d295e3c2b /source3 | |
parent | a15fd8376770a1e2191e561c93a93887f94fe347 (diff) | |
download | samba-c887e37275378ddaf772309738bc2cd92d5e2819.tar.gz samba-c887e37275378ddaf772309738bc2cd92d5e2819.tar.bz2 samba-c887e37275378ddaf772309738bc2cd92d5e2819.zip |
s3:libsmb: make use of cli_state_available_size() in cli_read_max_bufsize()
metze
Diffstat (limited to 'source3')
-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; } |