diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index fe4f2a9a2..02f16aa81 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -120,7 +120,7 @@ int RAND_load_file(const char *file, long bytes) if (bytes > 0) { bytes-=n; - if (bytes == 0) break; + if (bytes <= 0) break; } } fclose(in);