From: Pierangelo Masarati Date: Fri, 16 Dec 2005 11:33:11 +0000 (+0000) Subject: anticipate sr_err/sr_ref cross-check, so that the right error gets logged X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~577 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c523e3548400733e75e5aac9cba059872f3490f;p=openldap anticipate sr_err/sr_ref cross-check, so that the right error gets logged --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 4dc16019e2..df70a4357a 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -465,7 +465,7 @@ dn2entry_retry: #endif rs->sr_ref = referral_rewrite( default_referral, NULL, &op->o_req_dn, op->oq_search.rs_scope ); - rs->sr_err = LDAP_REFERRAL; + rs->sr_err = rs->sr_ref != NULL ? LDAP_REFERRAL : LDAP_NO_SUCH_OBJECT; } send_ldap_result( op, rs );