summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-12-21 23:14:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:44 -0500
commit3312191867e97a7cf3d485c050c1e689ea574f6d (patch)
tree7f145092d05f6ac2c6a8da774f91380ddb69623e
parentb800233942107b229d04999bf7eeffe4211ccbdf (diff)
downloadsamba-3312191867e97a7cf3d485c050c1e689ea574f6d.tar.gz
samba-3312191867e97a7cf3d485c050c1e689ea574f6d.tar.bz2
samba-3312191867e97a7cf3d485c050c1e689ea574f6d.zip
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 1168395e6a543c51f684280b00fb8c9b8bbc6ec0)
-rw-r--r--source3/smbd/pipes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index f7e9c595c1..6c7faa4c05 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -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);
}