mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
Fix referral handling bug
This commit is contained in:
parent
a26612bc00
commit
7537abfb06
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ ldbm_back_search(
|
|||
/* deref dn and get entry with reader lock */
|
||||
e = deref_dn_r( be, nbase, &err, &matched, &text );
|
||||
|
||||
if( err == LDAP_NO_SUCH_OBJECT ) err = LDAP_REFERRAL;
|
||||
|
||||
} else {
|
||||
/* get entry with reader lock */
|
||||
e = dn2entry_r( be, nbase, &matched );
|
||||
|
|
@ -97,6 +99,7 @@ ldbm_back_search(
|
|||
: NULL;
|
||||
|
||||
cache_return_entry_r( &li->li_cache, matched );
|
||||
|
||||
} else {
|
||||
refs = default_referral;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue