mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lbutils: close fd on rset failure
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -128,6 +128,10 @@ out:
|
||||
errno = saved_errno;
|
||||
return;
|
||||
err:
|
||||
#if defined(USE_URANDOM) && \
|
||||
((USE_URANDOM) > 0)
|
||||
close_no_err(&fd);
|
||||
#endif
|
||||
err_no_cleanup(0, ECANCELED,
|
||||
"Randomisation failure, possibly unsupported in your kernel");
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user