diff options
author | Jeremy Allison <jra@samba.org> | 2004-12-14 00:25:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:36 -0500 |
commit | 831cb21a874601e4536c2cf76c5351e1d0defcb5 (patch) | |
tree | 208ad87e92b88f58f1f82fbfc9abf20001af6ef1 /source/smbd/process.c | |
parent | 72e39041e9fbb7f252292182d56b1927a8133be0 (diff) | |
download | samba-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.c | 3 |
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) { |