r2373: Fix typo.
authorJeremy Allison <jra@samba.org>
Fri, 17 Sep 2004 00:53:17 +0000 (00:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:41 +0000 (10:52 -0500)
Jeremy.
(This used to be commit b1033fc77c97f0d9b5613a0b9f7d45dcf58e6b56)

source3/libsmb/clireadwrite.c

index 60ac89aeb2ad4b5a1ee37677424fa00afd20a078..3f14e530943d634bd7b9ad01fc2067acff059429 100644 (file)
@@ -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) {