From: Daniel Kobras Date: Tue, 11 Jun 2002 15:58:53 +0000 (+0000) Subject: * libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user X-Git-Tag: release-1-4-3~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a63737cbda3ff10acea3509276abb2a20bfa784;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 b735a50df..2ada91c83 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-05-06 Paul Eggert * libtool.m4 (_LT_AC_LTCONFIG_HACK): head -1 -> sed 1q to diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index b277fe911..03a60ec4c 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -2875,7 +2875,10 @@ try_dlopen (phandle, filename) #endif ))) { - tryall_dlopen (&newhandle, filename); + if (tryall_dlopen (&newhandle, filename) != 0) + { + newhandle = NULL; + } } if (!newhandle)