[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3475) send_ldap_result() called too many times in case of referrals

Full_Name: Pierangelo Masarati
Version: HEAD
OS: irrelevant
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (
Submitted by: ando

The problem occurs when modifying an entry that is subordinate to a referral
entry, but I suspect that it occurs whenever such an entry is accessed, since
it's related to the use of backend_check_referrals().

In bdb_referrals():107 in case a referral is found send_ldap_result() is
invoked.  bdb_referrals() however, returns 80 (LDAP_OTHER), so
backend_check_referrals():1137 calls send_ldap_result() again with rs->sr_err
set to 80.  The latter doesn't make it to the client, fortunately, but at least
it pollutes the server logs, and might do more harm (e.g. the chain overlay
response function is called twice ...)