]> git.sur5r.net Git - openldap/commitdiff
ITS#4137 was returning with tls_def_ctx_mutex locked.
authorHoward Chu <hyc@openldap.org>
Wed, 2 Nov 2005 23:43:19 +0000 (23:43 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 2 Nov 2005 23:43:19 +0000 (23:43 +0000)
libraries/libldap/tls.c

index 716c243e89fe4ff4cf07ce1633ba94a9271e3fde..c03c8446a8d69be9c5e502030a177847a885f27d 100644 (file)
@@ -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;
        }