diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-04-03 12:53:51 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-04-14 16:48:27 +0200 |
commit | 3ad6030948ac999de165f6185116459d74644e8d (patch) | |
tree | cd1f05f67890bc55b9cab065b963dfa5c7ded721 /apps/pkcs8.c | |
parent | Document the invariants for the empty X509_NAME encoding (diff) | |
download | openssl-3ad6030948ac999de165f6185116459d74644e8d.tar.xz openssl-3ad6030948ac999de165f6185116459d74644e8d.zip |
APPS: make apps strict on app_RAND_load() and app_RAND_write() failure
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14840)
Diffstat (limited to 'apps/pkcs8.c')
-rw-r--r-- | apps/pkcs8.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pkcs8.c b/apps/pkcs8.c index b8b56f1c80..cfcb341787 100644 --- a/apps/pkcs8.c +++ b/apps/pkcs8.c @@ -199,7 +199,9 @@ int pkcs8_main(int argc, char **argv) goto opthelp; private = 1; - app_RAND_load(); + if (!app_RAND_load()) + goto end; + if (ciphername != NULL) { if (!opt_cipher(ciphername, &cipher)) goto opthelp; |