Commit c7a7ed38 authored by Dr. Matthias St. Pierre's avatar Dr. Matthias St. Pierre
Browse files

randfile.c: fix a Coverity warning



Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7510)

(cherry picked from commit 040a03470c7c5bf95fe8e6143db7bef357a22833)
parent b1d6d55e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ int RAND_load_file(const char *file, long bytes)

    if (bytes < 0) {
        if (S_ISREG(sb.st_mode))
            bytes = (sb.st_size <= LONG_MAX) ? sb.st_size : LONG_MAX;
            bytes = sb.st_size;
        else
            bytes = RAND_DRBG_STRENGTH;
    }