From: Julio Sánchez Fernández Date: Tue, 20 Jul 1999 18:03:29 +0000 (+0000) Subject: Move the input data exhaustion loop to connection.c from daemon.c X-Git-Tag: OPENLDAP_REL_ENG_2_BP~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=504038ffac243d53c7d4ba94ad929c687cda50ac;p=openldap Move the input data exhaustion loop to connection.c from daemon.c --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 3094ee77a1..7c9de87ebc 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -864,9 +864,7 @@ slapd_daemon_task( * active. */ - while ( ( rc = connection_read( rd ) ) > 0 ) - ; - if ( rc < 0 ) { + if ( connection_read( rd ) < 0 ) { slapd_close( rd ); } }