From cce396a1ac3786b18f2c21d80c4e65e19481510d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 07:41:45 +0000 Subject: libreboot-utils: general code cleanup Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/num.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'util/libreboot-utils/lib/num.c') diff --git a/util/libreboot-utils/lib/num.c b/util/libreboot-utils/lib/num.c index 343350b0..91a1514f 100644 --- a/util/libreboot-utils/lib/num.c +++ b/util/libreboot-utils/lib/num.c @@ -257,12 +257,9 @@ retry_urandom_read: nr = new_nr; off = 0; - /* to mitigate file descriptor - * injection, we do not re-use - * the same descriptor each time - */ - (void) close_on_eintr(fd); - fd = -1; + /* don't re-use same fd, to mitaget + * fd injection */ + close_no_err(&fd); } fd = -1; -- cgit v1.2.1