From 504038ffac243d53c7d4ba94ad929c687cda50ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Tue, 20 Jul 1999 18:03:29 +0000 Subject: [PATCH] Move the input data exhaustion loop to connection.c from daemon.c --- servers/slapd/daemon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ); } } -- 2.39.5