]> git.sur5r.net Git - openldap/commitdiff
Move the input data exhaustion loop to connection.c from daemon.c
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Tue, 20 Jul 1999 18:03:29 +0000 (18:03 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Tue, 20 Jul 1999 18:03:29 +0000 (18:03 +0000)
servers/slapd/daemon.c

index 3094ee77a1de26146aa48e5959e7647673984855..7c9de87ebcba4ecdbbb52e737c3bb9fee6c4aab0 100644 (file)
@@ -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 );
                        }
                }