mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +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;
|
errno = saved_errno;
|
||||||
return;
|
return;
|
||||||
err:
|
err:
|
||||||
|
#if defined(USE_URANDOM) && \
|
||||||
|
((USE_URANDOM) > 0)
|
||||||
|
close_no_err(&fd);
|
||||||
|
#endif
|
||||||
err_no_cleanup(0, ECANCELED,
|
err_no_cleanup(0, ECANCELED,
|
||||||
"Randomisation failure, possibly unsupported in your kernel");
|
"Randomisation failure, possibly unsupported in your kernel");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user