APPS: make apps strict on app_RAND_load() and app_RAND_write() failure
[openssl.git] / apps / smime.c
index dcef6b3b4950c6bd9db77977e55ad72145558efd..98a2f32b4a12491dc9f7b291e21294fb2d774dec 100644 (file)
@@ -359,7 +359,9 @@ int smime_main(int argc, char **argv)
     argc = opt_num_rest();
     argv = opt_rest();
 
-    app_RAND_load();
+    if (!app_RAND_load())
+        goto end;
+
     if (digestname != NULL) {
         if (!opt_md(digestname, &sign_md))
             goto opthelp;