mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 22:46:16 +02:00
lbutils/rand: add missing error handle
accidentally removed in previous refactor Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -165,6 +165,9 @@ retry_rand:
|
|||||||
#error Unsupported operating system (possibly unsecure randomisation)
|
#error Unsupported operating system (possibly unsecure randomisation)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (rc < 0)
|
||||||
|
goto err;
|
||||||
|
|
||||||
if (rc == 0)
|
if (rc == 0)
|
||||||
goto err; /* prevent infinite loop on fatal err */
|
goto err; /* prevent infinite loop on fatal err */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user