anticipate sr_err/sr_ref cross-check, so that the right error gets logged

This commit is contained in:
Pierangelo Masarati 2005-12-16 11:33:11 +00:00
parent 266c6ad1ea
commit 1c523e3548

View File

@ -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 );