mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7042 More to unsetting opts with an empty string
This commit is contained in:
parent
0f9afae02d
commit
860daa0989
@ -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 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user