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/openssl.c | |
parent | 456541f0b7c7a4ca8c1c99740fff1bedcc4c9244 (diff) |
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/openssl.c')
-rw-r--r-- | apps/openssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index 6ef7d0ace1..30e1e755e0 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -298,7 +298,8 @@ int main(int argc, char *argv[]) OPENSSL_free(default_config_file); lh_FUNCTION_free(prog); OPENSSL_free(arg.argv); - app_RAND_write(); + if (!app_RAND_write()) + ret = EXIT_FAILURE; BIO_free(bio_in); BIO_free_all(bio_out); |