summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clireadwrite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 60ac89aeb2..3f14e53094 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -329,10 +329,10 @@ ssize_t cli_write(struct cli_state *cli,
int block = cli->max_xmit - (smb_size+32);
int blocks = (size + (block-1)) / block;
- if(cli->max_mux == 0) {
- mpx = 1;
- } else {
+ if(cli->max_mux > 1) {
mpx = cli->max_mux-1;
+ } else {
+ mpx = 1;
}
while (received < blocks) {