mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +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)
|
||||
#endif
|
||||
|
||||
if (rc < 0)
|
||||
goto err;
|
||||
|
||||
if (rc == 0)
|
||||
goto err; /* prevent infinite loop on fatal err */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user