summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-04 00:49:13 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-04 00:49:13 +0000
commit06390e792cd8aa57a91c3a3d1d267fd1bcdc17a1 (patch)
tree93c96dd41b7f229167489a58e7eb74bf7121d6f9 /source/libsmb
parente9e5a34de8e8f9a69e817aceb8c16284334d4642 (diff)
downloadsamba-06390e792cd8aa57a91c3a3d1d267fd1bcdc17a1.tar.gz
samba-06390e792cd8aa57a91c3a3d1d267fd1bcdc17a1.tar.xz
samba-06390e792cd8aa57a91c3a3d1d267fd1bcdc17a1.zip
argh! you wouldn't believe what i had to do: use the mid (multiplex id)
to redirect multiple socket-based connnections onto a single client state. argh!
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 985d1c496d6..fea105887f8 100644
--- a/source/libsmb/clientgen.c
+++ b/source/libsmb/clientgen.c
@@ -1597,7 +1597,7 @@ size_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t
int total = -1;
int issued=0;
int received=0;
- int mpx = MAX(cli->max_mux-1, 1);
+ int mpx = MIN(MAX(cli->max_mux-1, 1), MAX_MAX_MUX_LIMIT);
int block = (cli->max_xmit - (smb_size+32)) & ~1023;
int mid;
int blocks = (size + (block-1)) / block;