svn commit: samba r11629 - in branches/SAMBA_4_0/source/lib/stream: .

tridge at samba.org tridge at samba.org
Thu Nov 10 04:49:02 GMT 2005


Author: tridge
Date: 2005-11-10 04:49:02 +0000 (Thu, 10 Nov 2005)
New Revision: 11629

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

Log:

fixed a bug found with the socket:testnonblock code. With randomised
under-reads we could end up supplying a buffer to the client that has
an incorrect length


Modified:
   branches/SAMBA_4_0/source/lib/stream/packet.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/stream/packet.c
===================================================================
--- branches/SAMBA_4_0/source/lib/stream/packet.c	2005-11-10 04:28:55 UTC (rev 11628)
+++ branches/SAMBA_4_0/source/lib/stream/packet.c	2005-11-10 04:49:02 UTC (rev 11629)
@@ -291,6 +291,7 @@
 
 	/* it is a full request - give it to the caller */
 	blob = pc->partial;
+	blob.length = pc->num_read;
 
 	if (pc->packet_size < pc->num_read) {
 		pc->partial = data_blob_talloc(pc, blob.data + pc->packet_size, 



More information about the samba-cvs mailing list