aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2012-08-20 23:43:03 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2012-08-20 23:43:03 +0000
commit5763679b4deee246296252ecd81ef42be9987660 (patch)
tree6b9e5740a5f08472f09e4b2f064ad68b6d70c2a9 /libexec/rtld-elf
parentd4271816c7c7b9ad396f517ebe4f21ec9cdc4b8f (diff)
Notes
Diffstat (limited to 'libexec/rtld-elf')
-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 09abbc588cf3..050adbb154ae 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