From 860daa0989a741c7fac1f86a549f9101dd5c8973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 11 Jun 2019 15:37:22 +0200 Subject: [PATCH] ITS#7042 More to unsetting opts with an empty string --- libraries/libldap/tls2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/tls2.c b/libraries/libldap/tls2.c index 7ee303d252..94ba5a04fb 100644 --- a/libraries/libldap/tls2.c +++ b/libraries/libldap/tls2.c @@ -984,7 +984,7 @@ ldap_pvt_tls_set_option( LDAP *ld, int option, void *arg ) if ( !tls_imp->ti_session_pinning ) return -1; - if ( !pin ) { + if ( !pin || !*pin ) { if ( lo->ldo_tls_pin_hashalg ) { LDAP_FREE( lo->ldo_tls_pin_hashalg ); } else if ( lo->ldo_tls_pin.bv_val ) {