summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2001-02-03 10:59:16 +0000
committerLutz Jänicke <jaenicke@openssl.org>2001-02-03 10:59:16 +0000
commit53ab745f7adac268d0e88fb7c414c2c379e4324b (patch)
treef1081bd0f9859c9bdc1dfa278937ed0c26dbde99 /apps
parent2bbe747045f283e38c9db81f7c235fc330e4743d (diff)
If the source has already been succesfully queried, do not try to open it
again as file.
Diffstat (limited to 'apps')
-rw-r--r--apps/app_rand.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_rand.c b/apps/app_rand.c
index 1146f9f7f3..8a78e12eb7 100644
--- a/apps/app_rand.c
+++ b/apps/app_rand.c
@@ -177,8 +177,10 @@ long app_RAND_load_files(char *name)
if (*n == '\0') break;
egd=RAND_egd(n);
- if (egd > 0) tot+=egd;
- tot+=RAND_load_file(n,-1);
+ if (egd > 0)
+ tot+=egd;
+ else
+ tot+=RAND_load_file(n,-1);
if (last) break;
}
if (tot > 512)