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

RE: Crash on recursive rebind following referral (ITS#3359)

OK, in that case I think that the bug is probably in ldap_sasl_bind_s which
takes anything other than -1 returned from ldap_result as success. The
following is the relevant piece of code in that function:

	if ( ldap_result( ld, msgid, 1, NULL, &result ) == -1 ) {
		return( ld->ld_errno );	/* ldap_result sets ld_errno */

Which should probably be changed to "<= 0". I'll try that.


> -----Original Message-----
> From: Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org] 
> I take that back, and have reverted the change. ldap_result() 
> is suppose to return 0 on timeout.  Changing that breaks things.
> Kurt