git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b3720
)
r2373: Fix typo.
author
Jeremy Allison
<jra@samba.org>
Fri, 17 Sep 2004 00:53:17 +0000
(
00:53
+0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/source3/libsmb/clireadwrite.c
b/source3/libsmb/clireadwrite.c
index 60ac89aeb2ad4b5a1ee37677424fa00afd20a078..3f14e530943d634bd7b9ad01fc2067acff059429 100644
(file)
--- 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) {