diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-13 11:39:07 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-13 13:16:09 +0200 |
commit | 96fc0d601899b7c1647cc771f14fcef0b480b26a (patch) | |
tree | 65e402c03dc9202064748d8ce6cba6e37954dbfc /source3/libsmb | |
parent | c887e37275378ddaf772309738bc2cd92d5e2819 (diff) | |
download | samba-96fc0d601899b7c1647cc771f14fcef0b480b26a.tar.gz samba-96fc0d601899b7c1647cc771f14fcef0b480b26a.tar.bz2 samba-96fc0d601899b7c1647cc771f14fcef0b480b26a.zip |
s3:libsmb: make use of cli_state_available_size() in cli_write_max_bufsize()
metze
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 b68484a905..c714d3b273 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -81,7 +81,7 @@ static size_t cli_write_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; } |