summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
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;
}