* libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user

if tryall_dlopen() fails.
This commit is contained in:
Daniel Kobras 2002-06-11 16:09:22 +00:00 committed by Ossama Othman
parent 8a52a21e28
commit 9fb013ff55
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-11 Daniel Kobras <kobras@linux.de>
* libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user
if tryall_dlopen() fails.
2002-06-01 Gary V. Vaughan <gary@gnu.org>
* tests/pdemo-exec.test: Typo. s/hell-static/hell_static/

View File

@ -2871,7 +2871,10 @@ try_dlopen (phandle, filename)
#endif
)))
{
tryall_dlopen (&newhandle, filename);
if (tryall_dlopen (&newhandle, filename) != 0)
{
newhandle = NULL;
}
}
if (!newhandle)