summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 11:39:07 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 13:16:09 +0200
commit96fc0d601899b7c1647cc771f14fcef0b480b26a (patch)
tree65e402c03dc9202064748d8ce6cba6e37954dbfc /source3/libsmb
parentc887e37275378ddaf772309738bc2cd92d5e2819 (diff)
downloadsamba-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.c2
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;
}