ITS#9366 Check ldap_install_tls return and remove connection if failed

This commit is contained in:
Ondřej Kuzník 2020-10-12 11:09:03 +01:00 committed by Quanah Gibson-Mount
parent 6abfd60078
commit 98a0029dae
2 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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? */