From 6fcfaedf90e2777b07b8ce78aa35660128b74a23 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 2 Nov 2005 23:43:19 +0000 Subject: [PATCH] ITS#4137 was returning with tls_def_ctx_mutex locked. --- libraries/libldap/tls.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5