1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

r4330: Fix for bug found by Rob Foehl <rwf@loonybin.net>. Remember to

add in the bcc length for readX on named pipes.
Jeremy.
(This used to be commit 1168395e6a)
This commit is contained in:
Jeremy Allison 2004-12-21 23:14:20 +00:00 committed by Gerald (Jerry) Carter
parent b800233942
commit 3312191867

View File

@ -241,6 +241,8 @@ int reply_pipe_read_and_X(char *inbuf,char *outbuf,int length,int bufsize)
DEBUG(3,("readX-IPC pnum=%04x min=%d max=%d nread=%d\n",
p->pnum, smb_mincnt, smb_maxcnt, nread));
/* Ensure we set up the message length to include the data length read. */
set_message_bcc(outbuf,nread);
return chain_reply(inbuf,outbuf,length,bufsize);
}