svn commit: samba r7722 - in branches/SAMBA_4_0/source/libcli/ldap: .

tridge at samba.org tridge at samba.org
Sat Jun 18 12:44:36 GMT 2005


Author: tridge
Date: 2005-06-18 12:44:36 +0000 (Sat, 18 Jun 2005)
New Revision: 7722

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

Log:
when we get a zero read, the connection is dead


Modified:
   branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c	2005-06-18 11:10:54 UTC (rev 7721)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c	2005-06-18 12:44:36 UTC (rev 7722)
@@ -243,8 +243,7 @@
 	/* work out how much data is pending */
 	status = socket_pending(conn->sock, &npending);
 	if (!NT_STATUS_IS_OK(status) || npending == 0) {
-		DEBUG(0,("ldap_recv_handler - pending=%d - %s\n", 
-			 (int)npending, nt_errstr(status)));
+		ldap_connection_dead(conn);
 		return;
 	}
 



More information about the samba-cvs mailing list