]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_load_cache_lookup): Also recognize cache entries with flag == 3.
authorUlrich Drepper <drepper@redhat.com>
Thu, 6 Mar 1997 04:57:52 +0000 (04:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 6 Mar 1997 04:57:52 +0000 (04:57 +0000)
sysdeps/generic/dl-cache.c

index 09cb857506e89b293f296867bd8957c3c0efdbc1..c21c46fc9d8c024cc69dbcb3536c471d298de835 100644 (file)
@@ -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 &&