svn commit: samba r4329 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Tue Dec 21 23:14:17 GMT 2004


Author: jra
Date: 2004-12-21 23:14:17 +0000 (Tue, 21 Dec 2004)
New Revision: 4329

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4329

Log:
Fix for bug found by Rob Foehl <rwf at loonybin.net>. Remember to
add in the bcc length for readX on named pipes.
Jeremy.

Modified:
   trunk/source/smbd/pipes.c


Changeset:
Modified: trunk/source/smbd/pipes.c
===================================================================
--- trunk/source/smbd/pipes.c	2004-12-21 15:23:33 UTC (rev 4328)
+++ trunk/source/smbd/pipes.c	2004-12-21 23:14:17 UTC (rev 4329)
@@ -241,6 +241,8 @@
 	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);
 }
 



More information about the samba-cvs mailing list