https://bugs.openldap.org/show_bug.cgi?id=10023
--- Comment #5 from Howard Chu hyc@openldap.org --- (In reply to ipuleston@sonicwall.com from comment #2)
There are two ways to fix this, and I've tested that both work:
- Add the following in ldap_int_open_connection before the
LDAP_OPT_X_TLS_HARD check that was updated for ITS #8957:
if ( async && rc == -2) { /* Need to let the connect complete asynchronously before we continue */ return -2; }
Please supply an actual diff with your proposed fix, thanks.