svn commit: samba r3018 - in branches/SAMBA_4_0/source/lib/messaging: .

tridge at samba.org tridge at samba.org
Sun Oct 17 12:41:04 GMT 2004


Author: tridge
Date: 2004-10-17 12:41:04 +0000 (Sun, 17 Oct 2004)
New Revision: 3018

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib/messaging&rev=3018&nolog=1

Log:
handle STATUS_MORE_ENTRIES from socket_recv() in the messaging code




Modified:
   branches/SAMBA_4_0/source/lib/messaging/messaging.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c
===================================================================
--- branches/SAMBA_4_0/source/lib/messaging/messaging.c	2004-10-17 11:37:22 UTC (rev 3017)
+++ branches/SAMBA_4_0/source/lib/messaging/messaging.c	2004-10-17 12:41:04 UTC (rev 3018)
@@ -125,6 +125,7 @@
 	if (rec->ndone < sizeof(rec->header)) {
 		/* receive the header */
 		DATA_BLOB blob;
+		blob.length = 0;
 		status = socket_recv(rec->sock, rec, 
 				     &blob, sizeof(rec->header) - rec->ndone, 0);
 		if (NT_STATUS_IS_ERR(status)) {
@@ -159,6 +160,7 @@
 	    rec->ndone < sizeof(rec->header) + rec->header.length) {
 		/* receive the body, if any */
 		DATA_BLOB blob;
+		blob.length = 0;
 		status = socket_recv(rec->sock, rec, 
 				     &blob, sizeof(rec->header) + rec->header.length - rec->ndone, 0);
 		if (NT_STATUS_IS_ERR(status)) {



More information about the samba-cvs mailing list