From eaec3a56e4d18a9dcb16de0758b855830c49460d Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 9 Apr 2008 18:24:22 +0000 Subject: [PATCH] code cleanup: remove fake loop - vestige from 1.136, obsolete since 1.174 --- servers/slapd/search.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ) ) { -- 2.39.5