summaryrefslogtreecommitdiff
path: root/apps/srp.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-04-03 12:53:51 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-04-14 16:48:27 +0200
commit3ad6030948ac999de165f6185116459d74644e8d (patch)
treecd1f05f67890bc55b9cab065b963dfa5c7ded721 /apps/srp.c
parent456541f0b7c7a4ca8c1c99740fff1bedcc4c9244 (diff)
downloadopenssl-new-3ad6030948ac999de165f6185116459d74644e8d.tar.gz
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/srp.c')
-rw-r--r--apps/srp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/srp.c b/apps/srp.c
index 375ae1327c..af62e7e200 100644
--- a/apps/srp.c
+++ b/apps/srp.c
@@ -309,7 +309,9 @@ int srp_main(int argc, char **argv)
argc = opt_num_rest();
argv = opt_rest();
- app_RAND_load();
+ if (!app_RAND_load())
+ goto end;
+
if (srpvfile != NULL && configfile != NULL) {
BIO_printf(bio_err,
"-srpvfile and -configfile cannot be specified together.\n");