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

Fwd (ITS#3304): another followup to #ITS3304/#ITS3307 (FIXED, possibly?)

Forward this through the issue tracking system...

>Date: Thu, 28 Oct 2004 13:35:24 -0500
>From: Mike Thomas <mwt@cems.umn.edu>
>To: openldap-bugs@OpenLDAP.org
>Subject: another followup to #ITS3304/#ITS3307 (FIXED, possibly?)
>Comment: openldap-bugs mailing list <http://www.OpenLDAP.org/lists/>
>List-Archive: <http://www.OpenLDAP.org/lists/openldap-bugs/>
>I've never hacked around the OpenLDAP sources before, so forgive me if I've applied an uneducated fix, but after reading the diff between openldap 2.1.28 (working) and 2.1.29 (unworking) I went through and found the problem that was causing the referral hanging problem.
>This is with OpenLDAP 2.1.30
>Here's the segment of code (lines 805-807)
>                   if ( lc != NULL ) {
>                               ldap_free_connection( ld, lc, 0, 1 );
>                               *lcp = NULL;
>                       }
>removing (or commenting out) the *lcp = NULL;  statement on line 807 resolves this problem. The searches now chase referrals correctly
>and the search terminates instead of hangs. Like I said before, I'm fairly uneducated when it comes to the OpenLDAP code, I do not know if this fix introduces and other problems, but I thought since there was no progess (or stalled progress) on this bug, I'd investigate this myself.