mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-19 20:43:43 +08:00
fix dlmodule_load(): return immediately when open file fail
This commit is contained in:
@@ -442,6 +442,10 @@ struct rt_dlmodule* dlmodule_load(const char* filename)
|
|||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
goto __exit;
|
||||||
|
}
|
||||||
|
|
||||||
/* check ELF header */
|
/* check ELF header */
|
||||||
if (rt_memcmp(elf_module->e_ident, RTMMAG, SELFMAG) != 0 &&
|
if (rt_memcmp(elf_module->e_ident, RTMMAG, SELFMAG) != 0 &&
|
||||||
|
Reference in New Issue
Block a user