1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

elf-util: add missing assertion

(cherry picked from commit 80b241f2ec)
This commit is contained in:
Yu Watanabe 2022-01-04 02:02:12 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 72f95a1342
commit bdcc3b0713

View File

@ -685,6 +685,8 @@ int parse_elf_object(int fd, const char *executable, bool fork_disable_dump, cha
_cleanup_free_ char *buf = NULL;
int r;
assert(fd >= 0);
r = dlopen_dw();
if (r < 0)
return r;