From: Hallvard Furuseth Date: Sun, 10 Jul 2005 16:14:28 +0000 (+0000) Subject: goto loop_begin; skipped initialization of scopeok. X-Git-Tag: OPENLDAP_AC_BP~426 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26ea01e67edb4aaf439049c1c6570ca12afc8eb6;p=openldap goto loop_begin; skipped initialization of scopeok. --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 830497e49f..ebb8901d74 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -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? */