aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-06-18 16:17:13 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-06-18 16:17:13 +0000
commit5952de4b1b4a26c2f9d7542e9d69ade410954db2 (patch)
treeb28d7d5ee7b3ae6d36dd9e99f8dc757a1a921f91 /libexec
parent28ab032ea9d3a4202a9099901183e54d3f676385 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/rtld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 0dea9e6de3a6..6bc1f773f3ba 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;