dissect-image: do not try to close invalid fd
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Nov 2022 10:25:02 +0000 (19:25 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 13 Nov 2022 20:02:53 +0000 (21:02 +0100)
commit088377e0920a3785e7926f2ed382810836480ae6
treec2afac87230177859beefcf5e98082a089414c78
parentd6c817358c5f7e3107690577d197d206aaba67f9
dissect-image: do not try to close invalid fd

Fixes a bug introduced by f7725647bb41c3398a867f139efe526efe8aa1b3.

Hopefully fixes #25348.
src/shared/dissect-image.c
src/shared/dissect-image.h