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

Re: (ITS#5853) LDAP search crashes when chasing multiple referrals

hyc@symas.com wrote:
> And yet another approach is simply to bump up each lconn's refcnt, the same
> way request.c:ldap_new_connection() does, to prevent them from getting freed
> prematurely. This latter approach would be simplest, except it requires
> calling ldap_free_connection() to actually decrement the refcnt, and that
> requires more mutex manipulation for the libldap_r version. (I haven't looked
> too deeply into the lock dependencies yet, it may actually be simpler.)

I opted for this approach, now checked into HEAD. Please test.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/