diff options
Diffstat (limited to 'util/libreboot-utils')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |
