1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

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

(This used to be commit 060323530454edf21b217550b373513e5860146c)
This commit is contained in:
Andrew Tridgell 2005-06-18 12:44:36 +00:00 committed by Gerald (Jerry) Carter
parent 7dcb8c26de
commit 91a79f2b24

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