diff options
Diffstat (limited to 'util/libreboot-utils/lib/num.c')
| -rw-r--r-- | util/libreboot-utils/lib/num.c | 9 |
1 files changed, 3 insertions, 6 deletions
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; |
