print errors in pkey utility

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
This commit is contained in:
Dr. Stephen Henson 2017-01-03 16:07:52 +00:00
parent 23b6699ecc
commit 0396a447f2
1 changed files with 2 additions and 0 deletions

View 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);