From c0fd88155a83a0e080eaa769d5035a3c36d6d0fe Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 31 Mar 2026 14:14:44 +0100 Subject: lbutils/rand: add missing error handle accidentally removed in previous refactor Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/rand.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/libreboot-utils') 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 */ -- cgit v1.2.1