print errors in pkey utility
authorDr. Stephen Henson <steve@openssl.org>
Tue, 3 Jan 2017 16:07:52 +0000 (16:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Jan 2017 01:42:50 +0000 (01:42 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)

apps/pkey.c

index 48bfda8c34aebfd4cffa62062c33474bf39158ab..14896d3e46d1e1cdf0899a80b5920dea1e9eab57 100644 (file)
@@ -179,6 +179,8 @@ int pkey_main(int argc, char **argv)
     ret = 0;
 
  end:
+    if (ret != 0)
+        ERR_print_errors(bio_err);
     EVP_PKEY_free(pkey);
     release_engine(e);
     BIO_free_all(out);