summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-18 12:44:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:26 -0500
commit91a79f2b24b62d9b78ecb52ff593672acc6f971a (patch)
treecc3ac80cf68a082ad5daf3f35bc6e1443dce820a /source4/libcli
parent7dcb8c26de72543bdf0fe6a6cdd736ee697345b7 (diff)
downloadsamba-91a79f2b24b62d9b78ecb52ff593672acc6f971a.tar.gz
samba-91a79f2b24b62d9b78ecb52ff593672acc6f971a.tar.bz2
samba-91a79f2b24b62d9b78ecb52ff593672acc6f971a.zip
r7722: when we get a zero read, the connection is dead
(This used to be commit 060323530454edf21b217550b373513e5860146c)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap_client.c3
1 files changed, 1 insertions, 2 deletions
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;
}