From: Ulrich Drepper Date: Thu, 6 Mar 1997 04:57:52 +0000 (+0000) Subject: (_dl_load_cache_lookup): Also recognize cache entries with flag == 3. X-Git-Tag: cvs/glibc-2_0_4~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7f4318c029a60b34b17a87d7dafe4838cee0d2;p=thirdparty%2Fglibc.git (_dl_load_cache_lookup): Also recognize cache entries with flag == 3. --- diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c index 09cb857506e..c21c46fc9d8 100644 --- a/sysdeps/generic/dl-cache.c +++ b/sysdeps/generic/dl-cache.c @@ -77,7 +77,8 @@ _dl_load_cache_lookup (const char *name) } for (i = 0; i < cache->nlibs; ++i) - if (cache->libs[i].flags == 1 && /* ELF library entry. */ + if ((cache->libs[i].flags == 1 && + cache->libs[i].flags == 3) && /* ELF library entry. */ /* Make sure string table indices are not bogus before using them. */ cache->libs[i].key < cachesize - sizeof *cache && cache->libs[i].value < cachesize - sizeof *cache &&