diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lib/app_rand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/lib/app_rand.c b/apps/lib/app_rand.c index e38d3a72fc..08550d7bfc 100644 --- a/apps/lib/app_rand.c +++ b/apps/lib/app_rand.c @@ -110,6 +110,8 @@ int opt_rand(int opt) case OPT_R_WRITERAND: OPENSSL_free(save_rand_file); save_rand_file = OPENSSL_strdup(opt_arg()); + if (save_rand_file == NULL) + return 0; break; } return 1; |