]> git.sur5r.net Git - openldap/commitdiff
ITS#4082/4083 fix
authorKurt Zeilenga <kurt@openldap.org>
Wed, 12 Oct 2005 20:33:06 +0000 (20:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 12 Oct 2005 20:33:06 +0000 (20:33 +0000)
libraries/libldap/tls.c

index 6c73eff5b49b90225e31f2c5f960a0754a677e58..2b8cafb52a045209ff38d2fbc31bb16d6ba7a251 100644 (file)
@@ -202,8 +202,11 @@ ldap_pvt_tls_init_def_ctx( void )
 #ifdef LDAP_R_COMPILE
        ldap_pvt_thread_mutex_lock( &tls_def_ctx_mutex );
 #endif
-       if (( !cacertfile && !cacertdir ) || !certfile || !keyfile )
+
+       if ( !certfile && !keyfile && !cacertfile && !cacertdir ) {
+               /* minimum configuration not provided */
                return LDAP_NOT_SUPPORTED;
+       }
 
 #ifdef HAVE_EBCDIC
        /* This ASCII/EBCDIC handling is a real pain! */