If the source has already been succesfully queried, do not try to open it
authorLutz Jänicke <jaenicke@openssl.org>
Sat, 3 Feb 2001 10:59:13 +0000 (10:59 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Sat, 3 Feb 2001 10:59:13 +0000 (10:59 +0000)
again as file.

apps/app_rand.c

index 2126fd5aa1981d9795454eeb8cb407f511ec7bf5..9d6d5fbf6f84ef7d4a15ea32d679b10e79dddf72 100644 (file)
@@ -180,8 +180,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)