From: Daniel Kobras Date: Tue, 11 Jun 2002 16:09:22 +0000 (+0000) Subject: * libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user X-Git-Tag: release-1-5~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fb013ff5502407faeee13340afe6181ee9eca01;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user if tryall_dlopen() fails. --- diff --git a/ChangeLog b/ChangeLog index 57c34634b..1ce63620d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-11 Daniel Kobras + + * libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user + if tryall_dlopen() fails. + 2002-06-01 Gary V. Vaughan * tests/pdemo-exec.test: Typo. s/hell-static/hell_static/ diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 40b8bcec6..26dc6683e 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -2871,7 +2871,10 @@ try_dlopen (phandle, filename) #endif ))) { - tryall_dlopen (&newhandle, filename); + if (tryall_dlopen (&newhandle, filename) != 0) + { + newhandle = NULL; + } } if (!newhandle)