aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-sym.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-05-10 09:06:56 +0000
committerAndreas Jaeger <aj@suse.de>2000-05-10 09:06:56 +0000
commita8571d373c763ce55314d6010c43e7052fa42a45 (patch)
tree2ec6581ab992e6eec605e3656ac106cdc19f45e1 /elf/dl-sym.c
parentfbd61fc16fd20dfd5d4db3cc305a7b512074575e (diff)
downloadglibc-a8571d373c763ce55314d6010c43e7052fa42a45.zip
glibc-a8571d373c763ce55314d6010c43e7052fa42a45.tar.gz
glibc-a8571d373c763ce55314d6010c43e7052fa42a45.tar.bz2
Update.
2000-05-09 Jakub Jelinek <jakub@redhat.com> * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero. (_dl_vsym): Likewise. Reported by Owen Taylor <otaylor@redhat.com>. * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini always.
Diffstat (limited to 'elf/dl-sym.c')
-rw-r--r--elf/dl-sym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-sym.c b/elf/dl-sym.c
index 84236ff..8ab6f2c 100644
--- a/elf/dl-sym.c
+++ b/elf/dl-sym.c
@@ -74,7 +74,7 @@ RTLD_NEXT used in code not dynamically loaded"));
}
}
- if (result)
+ if (ref)
return DL_SYMBOL_ADDRESS (result, ref);
return NULL;
@@ -130,7 +130,7 @@ RTLD_NEXT used in code not dynamically loaded"));
map->l_local_scope, &vers, 0);
}
- if (result)
+ if (ref)
return DL_SYMBOL_ADDRESS (result, ref);
return NULL;
}