]> git.sur5r.net Git - openldap/commitdiff
code cleanup: remove fake loop - vestige from 1.136, obsolete since 1.174
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 9 Apr 2008 18:24:22 +0000 (18:24 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 9 Apr 2008 18:24:22 +0000 (18:24 +0000)
servers/slapd/search.c

index caf1dbee9e0df687492f70de0eca7af1fb1d1be9..2d998d97202a3b39f7343be55abec4cec4f2f815 100644 (file)
@@ -241,8 +241,7 @@ fe_op_search( Operation *op, SlapReply *rs )
 {
        BackendDB               *bd = op->o_bd;
 
-       /* fake while loop to allow breaking out */
-       while ( op->ors_scope == LDAP_SCOPE_BASE ) {
+       if ( op->ors_scope == LDAP_SCOPE_BASE ) {
                Entry *entry = NULL;
 
                if ( BER_BVISEMPTY( &op->o_req_ndn ) ) {
@@ -299,7 +298,6 @@ fe_op_search( Operation *op, SlapReply *rs )
                        send_ldap_result( op, rs );
                        goto return_results;
                }
-               break;
        }
 
        if( BER_BVISEMPTY( &op->o_req_ndn ) && !BER_BVISEMPTY( &default_search_nbase ) ) {