summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
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 09abbc5..050adbb 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -2853,7 +2853,8 @@ dlopen_object(const char *name, int fd, Obj_Entry *refobj, int lo_flags,
* This has to be done after we have loaded all of the
* dependencies, so that we do not miss any.
*/
- process_nodelete(obj);
+ if (obj != NULL)
+ process_nodelete(obj);
} else {
/*
* Bump the reference counts for objects on this DAG. If
OpenPOWER on IntegriCloud