mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 11:45:13 +00:00
fix bug in gnu hash lookup on dlsym(handle, name) lookups
wrong hash was being passed; just a copy/paste error. did not affect lookups in the global namespace; this is probably why it was not caught in testing.
This commit is contained in:
parent
dbcb3ad925
commit
a5d6199d09
@ -877,7 +877,7 @@ static void *do_dlsym(struct dso *p, const char *s, void *ra)
|
||||
if (p->deps) for (i=0; p->deps[i]; i++) {
|
||||
if (p->deps[i]->ghashtab) {
|
||||
if (!gh) gh = gnu_hash(s);
|
||||
sym = gnu_lookup(s, h, p->deps[i]);
|
||||
sym = gnu_lookup(s, gh, p->deps[i]);
|
||||
} else {
|
||||
if (!h) h = sysv_hash(s);
|
||||
sym = sysv_lookup(s, h, p->deps[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user