From 8da20c6f81c7e014154ae88baf53fe70c2cdbf6f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 31 Mar 2003 14:01:34 +0000 Subject: [PATCH] new API cleanup in proxy cache code --- servers/slapd/back-ldbm/search.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index 83f2a53257..62fdb4521a 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -73,14 +73,14 @@ ldbm_back_search( /* need normalized dn below */ ber_dupbv( &realbase, &e->e_nname ); } else { - if ((scope == LDAP_SCOPE_BASE) - && (e = dn2entry_r( op->o_bd, &op->o_req_ndn &matched ))) + if ((op->oq_search.rs_scope == LDAP_SCOPE_BASE) + && (e = dn2entry_r( op->o_bd, &op->o_req_ndn, &matched ))) { - candidates = base_candidate(op->o_bd,e); + candidates = base_candidate(op->o_bd, e); cache_return_entry_r( &li->li_cache, e ); goto searchit; } - cache_base_entry.e_nname = *nbase; + cache_base_entry.e_nname = op->o_req_ndn; e = &cache_base_entry; } #endif /* LDAP_CACHING */ -- 2.39.5