The Samba-Bugzilla – Attachment 2361 Details for
Bug 4494
reply_read_and_X returns malformed reply on read error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 966 bytes, created by
Jeremy Allison
on 2007-04-09 15:55:19 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2007-04-09 15:55:19 UTC
Size:
966 bytes
patch
obsolete
>Index: smbd/process.c >=================================================================== >--- smbd/process.c (revision 22143) >+++ smbd/process.c (working copy) >@@ -1153,8 +1153,8 @@ > char outbuf_saved[smb_wct]; > int outsize = smb_len(outbuf) + 4; > >- /* maybe its not chained */ >- if (smb_com2 == 0xFF) { >+ /* Maybe its not chained, or it's an error packet. */ >+ if (smb_com2 == 0xFF || SVAL(outbuf,smb_rcls) != 0) { > SCVAL(outbuf,smb_vwv0,0xFF); > return outsize; > } >Index: smbd/reply.c >=================================================================== >--- smbd/reply.c (revision 22143) >+++ smbd/reply.c (working copy) >@@ -2705,8 +2705,10 @@ > } > > nread = send_file_readX(conn, inbuf, outbuf, length, bufsize, fsp, startpos, smb_maxcnt); >- if (nread != -1) >+ /* Only call chain_reply if not an error. */ >+ if (nread != -1 && SVAL(outbuf,smb_rcls) == 0) { > nread = chain_reply(inbuf,outbuf,length,bufsize); >+ } > > END_PROFILE(SMBreadX); > return nread;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4494
: 2361