projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
APPS: make apps strict on app_RAND_load() and app_RAND_write() failure
[openssl.git]
/
apps
/
smime.c
diff --git
a/apps/smime.c
b/apps/smime.c
index dcef6b3b4950c6bd9db77977e55ad72145558efd..98a2f32b4a12491dc9f7b291e21294fb2d774dec 100644
(file)
--- a/
apps/smime.c
+++ b/
apps/smime.c
@@
-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;