svn commit: samba r7750 - in branches/SAMBA_4_0/source/lib/tls: .

tridge at samba.org tridge at samba.org
Sun Jun 19 11:00:13 GMT 2005


Author: tridge
Date: 2005-06-19 11:00:13 +0000 (Sun, 19 Jun 2005)
New Revision: 7750

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

Log:
handle STATUS_MORE_ENTRIES on send in tls

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


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tls/tls.c
===================================================================
--- branches/SAMBA_4_0/source/lib/tls/tls.c	2005-06-19 10:37:45 UTC (rev 7749)
+++ branches/SAMBA_4_0/source/lib/tls/tls.c	2005-06-19 11:00:13 UTC (rev 7750)
@@ -111,6 +111,10 @@
 	b.length = size;
 
 	status = socket_send(tls->socket, &b, &nwritten, 0);
+	if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) {
+		errno = EAGAIN;
+		return -1;
+	}
 	if (!NT_STATUS_IS_OK(status)) {
 		EVENT_FD_WRITEABLE(tls->fde);
 		return -1;



More information about the samba-cvs mailing list