summaryrefslogtreecommitdiffstats
path: root/source/smbd/process.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-12-14 00:25:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:36 -0500
commit831cb21a874601e4536c2cf76c5351e1d0defcb5 (patch)
tree208ad87e92b88f58f1f82fbfc9abf20001af6ef1 /source/smbd/process.c
parent72e39041e9fbb7f252292182d56b1927a8133be0 (diff)
downloadsamba-831cb21a874601e4536c2cf76c5351e1d0defcb5.tar.gz
samba-831cb21a874601e4536c2cf76c5351e1d0defcb5.tar.xz
samba-831cb21a874601e4536c2cf76c5351e1d0defcb5.zip
r4186: Fix client & server to allow 127k READX calls.
Jeremy.
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r--source/smbd/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 8adc5c2e665..aa1f574767b 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -1177,8 +1177,7 @@ int chain_reply(char *inbuf,char *outbuf,int size,int bufsize)
int outsize2;
char inbuf_saved[smb_wct];
char outbuf_saved[smb_wct];
- int wct = CVAL(outbuf,smb_wct);
- int outsize = smb_size + 2*wct + SVAL(outbuf,smb_vwv0+2*wct);
+ int outsize = smb_len(outbuf);
/* maybe its not chained */
if (smb_com2 == 0xFF) {