about summary refs log tree commit diff
path: root/elf/dlvsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dlvsym.c')
-rw-r--r--elf/dlvsym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dlvsym.c b/elf/dlvsym.c
index 989e87b9fa..cee0e7f36b 100644
--- a/elf/dlvsym.c
+++ b/elf/dlvsym.c
@@ -43,7 +43,7 @@ dlvsym_doit (void *a)
   struct dlvsym_args *args = (struct dlvsym_args *)a;
   args->ref = NULL;
 
-  if (args->handle == NULL)
+  if (args->handle == RTLD_DEFAULT)
     /* Search the global scope.  */
     args->loadbase = _dl_lookup_versioned_symbol (args->name, &args->ref,
 						  _dl_global_scope,