]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/search.c
fix typo
[openldap] / 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 ) ) {