]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user
authorDaniel Kobras <kobras@linux.de>
Tue, 11 Jun 2002 15:58:53 +0000 (15:58 +0000)
committerOssama Othman <ossama@debian.org>
Tue, 11 Jun 2002 15:58:53 +0000 (15:58 +0000)
  if tryall_dlopen() fails.

ChangeLog
libltdl/ltdl.c

index b735a50df88a662815b61d163044e0e405d5ed83..2ada91c83bdb624636814966e05eecfea0c9bd67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-05-06  Paul Eggert  <eggert@twinsun.com>
 
        * libtool.m4 (_LT_AC_LTCONFIG_HACK): head -1 -> sed 1q to
index b277fe91147200d0cab4ce7444dbab4529c52917..03a60ec4c83d5155a59cf24684ae8db47c9aa0e0 100644 (file)
@@ -2875,7 +2875,10 @@ try_dlopen (phandle, filename)
 #endif
                   )))
        {
-         tryall_dlopen (&newhandle, filename);
+          if (tryall_dlopen (&newhandle, filename) != 0)
+            {
+              newhandle = NULL;
+            }
        }
 
       if (!newhandle)