]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/dgst.c
APPS: make apps strict on app_RAND_load() and app_RAND_write() failure
[thirdparty/openssl.git] / apps / dgst.c
index 891cf79279b01b1b7ad08ede681327b7faddda0b..20626c2b32b74fd59bdc2ae4919fe6a021978312 100644 (file)
@@ -225,7 +225,9 @@ int dgst_main(int argc, char **argv)
         BIO_printf(bio_err, "%s: Can only sign or verify one file.\n", prog);
         goto end;
     }
-    app_RAND_load();
+    if (!app_RAND_load())
+        goto end;
+
     if (digestname != NULL) {
         if (!opt_md(digestname, &md))
             goto opthelp;