use <= instead of ==
authorUlf Möller <ulf@openssl.org>
Thu, 8 Feb 2001 17:45:32 +0000 (17:45 +0000)
committerUlf Möller <ulf@openssl.org>
Thu, 8 Feb 2001 17:45:32 +0000 (17:45 +0000)
crypto/rand/randfile.c

index fe4f2a9a211e95fa835c566e5ba196cc52ca43d1..02f16aa810329d28ee698dc51a05130f37645c9a 100644 (file)
@@ -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);