]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/gendsa.c
APPS: make apps strict on app_RAND_load() and app_RAND_write() failure
[thirdparty/openssl.git] / apps / gendsa.c
index 482191d8bf34e94ebcca9a67647fb2826152a5c2..97904d2c829c10070d2acf04f7c923e6556f13f3 100644 (file)
@@ -107,7 +107,9 @@ int gendsa_main(int argc, char **argv)
         goto opthelp;
     dsaparams = argv[0];
 
-    app_RAND_load();
+    if (!app_RAND_load())
+        goto end;
+
     if (ciphername != NULL) {
         if (!opt_cipher(ciphername, &enc))
             goto end;