]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/srp.c
APPS: make apps strict on app_RAND_load() and app_RAND_write() failure
[thirdparty/openssl.git] / apps / srp.c
index 375ae1327c794d4b0eb635304795e191cbe2b4a9..af62e7e200272dbcfbc23b43c064906169f95627 100644 (file)
@@ -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");