fd2893
diff -up openssl-1.0.2c/apps/s_server.c.default-paths openssl-1.0.2c/apps/s_server.c
fd2893
--- openssl-1.0.2c/apps/s_server.c.default-paths	2015-06-12 16:51:21.000000000 +0200
fd2893
+++ openssl-1.0.2c/apps/s_server.c	2015-06-15 17:24:17.747446515 +0200
fd2893
@@ -1788,12 +1788,16 @@ int MAIN(int argc, char *argv[])
fd2893
     }
fd2893
 #endif
fd2893
 
fd2893
-    if ((!SSL_CTX_load_verify_locations(ctx, CAfile, CApath)) ||
fd2893
-        (!SSL_CTX_set_default_verify_paths(ctx))) {
fd2893
-        /* BIO_printf(bio_err,"X509_load_verify_locations\n"); */
fd2893
-        ERR_print_errors(bio_err);
fd2893
-        /* goto end; */
fd2893
+    if (CAfile == NULL && CApath == NULL) {
fd2893
+        if (!SSL_CTX_set_default_verify_paths(ctx)) {
fd2893
+            ERR_print_errors(bio_err);
fd2893
+        }
fd2893
+    } else {
fd2893
+        if (!SSL_CTX_load_verify_locations(ctx, CAfile, CApath)) {
fd2893
+            ERR_print_errors(bio_err);
fd2893
+        }
fd2893
     }
fd2893
+
fd2893
     if (vpm)
fd2893
         SSL_CTX_set1_param(ctx, vpm);
fd2893
 
fd2893
@@ -1850,8 +1854,10 @@ int MAIN(int argc, char *argv[])
fd2893
         else
fd2893
             SSL_CTX_sess_set_cache_size(ctx2, 128);
fd2893
 
fd2893
-        if ((!SSL_CTX_load_verify_locations(ctx2, CAfile, CApath)) ||
fd2893
-            (!SSL_CTX_set_default_verify_paths(ctx2))) {
fd2893
+        if (!SSL_CTX_load_verify_locations(ctx2, CAfile, CApath)) {
fd2893
+            ERR_print_errors(bio_err);
fd2893
+        }
fd2893
+        if (!SSL_CTX_set_default_verify_paths(ctx2)) {
fd2893
             ERR_print_errors(bio_err);
fd2893
         }
fd2893
         if (vpm)
fd2893
diff -up openssl-1.0.2c/apps/s_time.c.default-paths openssl-1.0.2c/apps/s_time.c
fd2893
--- openssl-1.0.2c/apps/s_time.c.default-paths	2015-06-12 16:51:21.000000000 +0200
fd2893
+++ openssl-1.0.2c/apps/s_time.c	2015-06-15 17:24:17.747446515 +0200
fd2893
@@ -381,13 +381,14 @@ int MAIN(int argc, char **argv)
fd2893
 
fd2893
     SSL_load_error_strings();
fd2893
 
fd2893
-    if ((!SSL_CTX_load_verify_locations(tm_ctx, CAfile, CApath)) ||
fd2893
-        (!SSL_CTX_set_default_verify_paths(tm_ctx))) {
fd2893
-        /*
fd2893
-         * BIO_printf(bio_err,"error setting default verify locations\n");
fd2893
-         */
fd2893
-        ERR_print_errors(bio_err);
fd2893
-        /* goto end; */
fd2893
+    if (CAfile == NULL && CApath == NULL) {
fd2893
+        if (!SSL_CTX_set_default_verify_paths(tm_ctx)) {
fd2893
+            ERR_print_errors(bio_err);
fd2893
+        }
fd2893
+    } else {
fd2893
+        if (!SSL_CTX_load_verify_locations(tm_ctx, CAfile, CApath)) {
fd2893
+            ERR_print_errors(bio_err);
fd2893
+        }
fd2893
     }
fd2893
 
fd2893
     if (tm_cipher == NULL)