summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ld.so/library.c')
-rw-r--r--libexec/ld.so/library.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c
index 753f0b53617..c6afa737c6b 100644
--- a/libexec/ld.so/library.c
+++ b/libexec/ld.so/library.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library.c,v 1.49 2005/10/09 04:29:13 kurt Exp $ */
+/* $OpenBSD: library.c,v 1.50 2005/10/12 20:36:16 kurt Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -91,7 +91,7 @@ _dl_tryload_shlib(const char *libname, int type, int flags)
object = _dl_lookup_object(libname);
if (object) {
- object->load_object->obj_flags |= flags & RTLD_GLOBAL;
+ object->obj_flags |= flags & RTLD_GLOBAL;
if (_dl_loading_object == NULL)
_dl_loading_object = object;
if (object->load_object != _dl_objects &&
@@ -115,7 +115,7 @@ _dl_tryload_shlib(const char *libname, int type, int flags)
for (object = _dl_objects; object != NULL; object = object->next) {
if (object->dev == sb.st_dev &&
object->inode == sb.st_ino) {
- object->load_object->obj_flags |= flags & RTLD_GLOBAL;
+ object->obj_flags |= flags & RTLD_GLOBAL;
_dl_close(libfile);
if (_dl_loading_object == NULL)
_dl_loading_object = object;