From 26ea01e67edb4aaf439049c1c6570ca12afc8eb6 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 10 Jul 2005 16:14:28 +0000 Subject: [PATCH] goto loop_begin; skipped initialization of scopeok. --- servers/slapd/back-bdb/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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? */ -- 2.39.5