about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--elf/dl-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 2b58ff32aa..581c6a6c2b 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -306,7 +306,7 @@ _dl_lookup_symbol_skip (const char *undef_name,
   for (i = 0; (*scope)->r_duplist[i] != skip_map; ++i)
     assert (i < (*scope)->r_nduplist);
 
-  while (i >= (*scope)->r_nlist
+  if (i >= (*scope)->r_nlist
 	 || ! do_lookup (undef_name, hash, *ref, &current_value, *scope, i,
 			 skip_map, 0, 0))
     while (*++scope)