aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2001-02-08 17:45:32 +0000
committerUlf Möller <ulf@openssl.org>2001-02-08 17:45:32 +0000
commita71b5abfa4c5515fcfb5b69281e04cf620e0c66c (patch)
tree77eba2e3a58bc2146ab55108ea76b288413c53e4
parent928cc3a6de4606faece84ee1468a7ff2b7fc521e (diff)
downloadopenssl-a71b5abfa4c5515fcfb5b69281e04cf620e0c66c.tar.gz
use <= instead of ==
-rw-r--r--crypto/rand/randfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index fe4f2a9a21..02f16aa810 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);