From: Howard Chu Date: Wed, 2 Nov 2005 23:43:19 +0000 (+0000) Subject: ITS#4137 was returning with tls_def_ctx_mutex locked. X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fcfaedf90e2777b07b8ce78aa35660128b74a23;p=openldap ITS#4137 was returning with tls_def_ctx_mutex locked. --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 716c243e89..c03c8446a8 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -217,6 +217,9 @@ ldap_pvt_tls_init_def_ctx( void ) if ( !certfile && !keyfile && !cacertfile && !cacertdir ) { /* minimum configuration not provided */ +#ifdef LDAP_R_COMPILE + ldap_pvt_thread_mutex_unlock( &tls_def_ctx_mutex ); +#endif return LDAP_NOT_SUPPORTED; }