- add additional NULL check. I know you can get this if you forget to

call lt_dlinit(), but I'm pretty certain that I've seen it in other
  cases as well.
This commit is contained in:
Bryce Denney 2002-10-12 11:47:26 +00:00
parent fb6fe521a2
commit 87d714f9ca

View File

@ -3327,6 +3327,12 @@ lt_dlsym (handle, symbol)
return 0;
}
if (!handle->loader)
{
LT_DLMUTEX_SETERROR (LT_DLSTRERROR (INVALID_LOADER));
return 0;
}
lensym = LT_STRLEN (symbol) + LT_STRLEN (handle->loader->sym_prefix)
+ LT_STRLEN (handle->info.name);