diff options
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 0dea9e6..6bc1f77 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -815,7 +815,8 @@ find_library(const char *xname, const Obj_Entry *refobj) } #ifdef WITH_LIBMAP - if (libmap_disable || (name = lm_find(refobj->path, xname)) == NULL) + if (libmap_disable || (refobj == NULL) || + (name = lm_find(refobj->path, xname)) == NULL) #endif name = (char *)xname; |