Clean up the use of ERR_print_errors() in apps.c and in four apps
[openssl.git] / apps / s_client.c
index 1596cb2f1ed8de5bdc589fafdd708eab03461566..eb4dbdcaa26df518ee98397190a16cb1ae695af4 100644 (file)
@@ -1714,18 +1714,14 @@ int s_client_main(int argc, char **argv)
     if (key_file != NULL) {
         key = load_key(key_file, key_format, 0, pass, e,
                        "client certificate private key file");
-        if (key == NULL) {
-            ERR_print_errors(bio_err);
+        if (key == NULL)
             goto end;
-        }
     }
 
     if (cert_file != NULL) {
         cert = load_cert(cert_file, cert_format, "client certificate file");
-        if (cert == NULL) {
-            ERR_print_errors(bio_err);
+        if (cert == NULL)
             goto end;
-        }
     }
 
     if (chain_file != NULL) {