[hurd,commited] elf tst-dl_find_object: Fix typo

Message ID 20220115125941.231761-1-samuel.thibault@ens-lyon.org
State Committed, archived
Headers
Series [hurd,commited] elf tst-dl_find_object: Fix typo |

Checks

Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent
dj/TryBot-32bit fail Patch series failed to apply

Commit Message

Samuel Thibault Jan. 15, 2022, 12:59 p.m. UTC
  mod1 was xdlclose()d a few lines above.
---
 elf/tst-dl_find_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/elf/tst-dl_find_object.c b/elf/tst-dl_find_object.c
index 21cdc0f848..855d0fc735 100644
--- a/elf/tst-dl_find_object.c
+++ b/elf/tst-dl_find_object.c
@@ -201,7 +201,7 @@  do_test (void)
 
   /* Now try a NODELETE load.  */
   struct link_map *mod2 = xdlopen ("tst-dl_find_object-mod2.so", RTLD_NOW);
-  void *mod2_data = xdlsym (mod1, "mod2_data");
+  void *mod2_data = xdlsym (mod2, "mod2_data");
   map_start = (void *) mod2->l_map_start;
   map_end = (void *) (mod2->l_map_end - 1);
   check_initial ();