ITS#7042 More to unsetting opts with an empty string

This commit is contained in:
Ondřej Kuzník 2019-06-11 15:37:22 +02:00
parent 0f9afae02d
commit 860daa0989

View File

@ -984,7 +984,7 @@ ldap_pvt_tls_set_option( LDAP *ld, int option, void *arg )
if ( !tls_imp->ti_session_pinning ) return -1; if ( !tls_imp->ti_session_pinning ) return -1;
if ( !pin ) { if ( !pin || !*pin ) {
if ( lo->ldo_tls_pin_hashalg ) { if ( lo->ldo_tls_pin_hashalg ) {
LDAP_FREE( lo->ldo_tls_pin_hashalg ); LDAP_FREE( lo->ldo_tls_pin_hashalg );
} else if ( lo->ldo_tls_pin.bv_val ) { } else if ( lo->ldo_tls_pin.bv_val ) {