summaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-04-22 14:58:41 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-04-24 18:00:24 +0200
commit01c12100f7d54db29da3fd47dc40c9d0e08c0ab0 (patch)
tree076f471167c5b0929e8aa65c35e26d7e0fb501c5 /apps/x509.c
parent3ee4e8cea72056ea56fdbfff8bb1b6daf2276933 (diff)
Clean up the use of ERR_print_errors() in apps.c and in four apps
Also make sure that all error messages in apps.c consistently begin upper-case. Changed files: apps/lib/apps.c and apps/{req.c,s_client.c,s_server.c,x509.c} Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/4940)
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/x509.c b/apps/x509.c
index d891b42f92..a2a52e41b1 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -574,10 +574,8 @@ int x509_main(int argc, char **argv)
EVP_PKEY *pkey;
req = load_csr(infile, informat, "certificate request input");
- if (req == NULL) {
- ERR_print_errors(bio_err);
+ if (req == NULL)
goto end;
- }
if ((pkey = X509_REQ_get0_pubkey(req)) == NULL) {
BIO_printf(bio_err, "error unpacking public key\n");