mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9366 Check ldap_install_tls return and remove connection if failed
This commit is contained in:
parent
6abfd60078
commit
98a0029dae
@ -303,7 +303,7 @@ retry:;
|
||||
* using it instead of the
|
||||
* configured URI? */
|
||||
if ( rs->sr_err == LDAP_SUCCESS ) {
|
||||
ldap_install_tls( msc->msc_ld );
|
||||
rs->sr_err = ldap_install_tls( msc->msc_ld );
|
||||
|
||||
} else if ( rs->sr_err == LDAP_REFERRAL ) {
|
||||
/* FIXME: LDAP_OPERATIONS_ERROR? */
|
||||
@ -352,6 +352,8 @@ retry:;
|
||||
(void *)msc->msc_ld );
|
||||
#endif /* DEBUG_205 */
|
||||
|
||||
/* need to trash a failed Start TLS */
|
||||
asyncmeta_clear_one_msc( op, mc, candidate, 1, __FUNCTION__ );
|
||||
goto error_return;
|
||||
}
|
||||
}
|
||||
|
@ -508,7 +508,7 @@ retry:;
|
||||
* using it instead of the
|
||||
* configured URI? */
|
||||
if ( rs->sr_err == LDAP_SUCCESS ) {
|
||||
ldap_install_tls( msc->msc_ld );
|
||||
rs->sr_err = ldap_install_tls( msc->msc_ld );
|
||||
|
||||
} else if ( rs->sr_err == LDAP_REFERRAL ) {
|
||||
/* FIXME: LDAP_OPERATIONS_ERROR? */
|
||||
|
Loading…
Reference in New Issue
Block a user