mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
anticipate sr_err/sr_ref cross-check, so that the right error gets logged
This commit is contained in:
parent
266c6ad1ea
commit
1c523e3548
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user