about summary refs log tree commit diff
path: root/elf/dlsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dlsym.c')
-rw-r--r--elf/dlsym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dlsym.c b/elf/dlsym.c
index ed786a2625..64d0cabbd4 100644
--- a/elf/dlsym.c
+++ b/elf/dlsym.c
@@ -41,7 +41,7 @@ dlsym_doit (void *a)
   struct dlsym_args *args = (struct dlsym_args *) a;
   args->ref = NULL;
 
-  if (args->handle == NULL)
+  if (args->handle == RTLD_DEFAULT)
     /* Search the global scope.  */
     args->loadbase = _dl_lookup_symbol (args->name, &args->ref,
 					_dl_global_scope, NULL, 0);