]> git.sur5r.net Git - openldap/commitdiff
goto loop_begin; skipped initialization of scopeok.
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 10 Jul 2005 16:14:28 +0000 (16:14 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 10 Jul 2005 16:14:28 +0000 (16:14 +0000)
servers/slapd/back-bdb/search.c

index 830497e49fa82c2371a055d83bbd653cf49b625f..ebb8901d743efcdae741006acaffbf746b928d9d 100644 (file)
@@ -641,7 +641,7 @@ dn2entry_retry:
        for ( id = bdb_idl_first( candidates, &cursor );
                  id != NOID ; id = bdb_idl_next( candidates, &cursor ) )
        {
-               int scopeok = 0;
+               int scopeok;
 
 loop_begin:
 
@@ -731,6 +731,7 @@ fetch_entry_retry:
                 * scope while we are looking at it, and unless we're using
                 * BDB_HIER, its parents cannot be moved either.
                 */
+               scopeok = 0;
                switch( op->ors_scope ) {
                case LDAP_SCOPE_BASE:
                        /* This is always true, yes? */