From: Hallvard Furuseth Date: Wed, 9 Apr 2008 18:24:22 +0000 (+0000) Subject: code cleanup: remove fake loop - vestige from 1.136, obsolete since 1.174 X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eaec3a56e4d18a9dcb16de0758b855830c49460d;p=openldap code cleanup: remove fake loop - vestige from 1.136, obsolete since 1.174 --- diff --git a/servers/slapd/search.c b/servers/slapd/search.c index caf1dbee9e..2d998d9720 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -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 ) ) {