lbutils/rand: add missing error handle

accidentally removed in previous refactor

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-31 14:14:44 +01:00
parent 6d9f162f5b
commit c0fd88155a
+3
View File
@@ -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 */