From 91a79f2b24b62d9b78ecb52ff593672acc6f971a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 18 Jun 2005 12:44:36 +0000 Subject: r7722: when we get a zero read, the connection is dead (This used to be commit 060323530454edf21b217550b373513e5860146c) --- source4/libcli/ldap/ldap_client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c index bc70cd56aa..f2b09e89e3 100644 --- a/source4/libcli/ldap/ldap_client.c +++ b/source4/libcli/ldap/ldap_client.c @@ -243,8 +243,7 @@ static void ldap_recv_handler(struct ldap_connection *conn) /* 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; } -- cgit