mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
ITS#8957 - Fix ASYNC TLS
Fix ASYNC TLS by correctly handling a return code of -2 in addition to 0
This commit is contained in:
parent
50b33cc6b8
commit
09ff530036
1 changed files with 1 additions and 1 deletions
|
|
@ -489,7 +489,7 @@ ldap_int_open_connection(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_TLS
|
#ifdef HAVE_TLS
|
||||||
if (rc == 0 && ( ld->ld_options.ldo_tls_mode == LDAP_OPT_X_TLS_HARD ||
|
if ((rc == 0 || rc == -2) && ( ld->ld_options.ldo_tls_mode == LDAP_OPT_X_TLS_HARD ||
|
||||||
strcmp( srv->lud_scheme, "ldaps" ) == 0 ))
|
strcmp( srv->lud_scheme, "ldaps" ) == 0 ))
|
||||||
{
|
{
|
||||||
++conn->lconn_refcnt; /* avoid premature free */
|
++conn->lconn_refcnt; /* avoid premature free */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue