From: Howard Chu Date: Thu, 8 Sep 2011 17:31:04 +0000 (-0700) Subject: Fix 6c8e4f2671b6aed41cd5098725048dbe2513612c X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~137 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75e3cac81bbdbbb59c831c6d76916cc84dfd81a6;p=openldap Fix 6c8e4f2671b6aed41cd5098725048dbe2513612c --- diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index 101e955f4f..94ade1433a 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -313,6 +313,7 @@ mdb_search( Operation *op, SlapReply *rs ) ltid = moi->moi_txn; isc.mt = ltid; isc.mc = NULL; + isc.scopes = scopes; if ( op->ors_deref & LDAP_DEREF_FINDING ) { MDB_IDL_ZERO(candidates); @@ -552,8 +553,6 @@ dn2entry_retry: goto loop_begin; } - isc.scopes = scopes; - for ( id = mdb_idl_first( candidates, &cursor ); id != NOID ; id = mdb_idl_next( candidates, &cursor ) ) {