diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 7634903a..20dc33cd 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -165,6 +165,9 @@ retry_rand: #error Unsupported operating system (possibly unsecure randomisation) #endif + if (rc < 0) + goto err; + if (rc == 0) goto err; /* prevent infinite loop on fatal err */