r7722: when we get a zero read, the connection is dead
authorAndrew Tridgell <tridge@samba.org>
Sat, 18 Jun 2005 12:44:36 +0000 (12:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:26 +0000 (13:18 -0500)
(This used to be commit 060323530454edf21b217550b373513e5860146c)

source4/libcli/ldap/ldap_client.c

index bc70cd56aa3bf83d3045cfeee31f5a102a69c060..f2b09e89e326c7a42aa53a998767c93af2c2f130 100644 (file)
@@ -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;
        }