1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

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

This commit is contained in:
Andrew Tridgell
2005-06-18 12:44:36 +00:00
committed by Gerald (Jerry) Carter
parent 73a21737ce
commit 0603235304

View 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;
}