]> 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 16:09:22 +0000 (16:09 +0000)
committerOssama Othman <ossama@debian.org>
Tue, 11 Jun 2002 16:09:22 +0000 (16:09 +0000)
  if tryall_dlopen() fails.

ChangeLog
libltdl/ltdl.c

index 57c34634b5d199b8ba4b154753d566fee0a3aff2..1ce63620d8dd444aaa0c869fde5ab20bb1dc5479 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-06-01  Gary V. Vaughan  <gary@gnu.org>
 
        * tests/pdemo-exec.test: Typo.  s/hell-static/hell_static/
index 40b8bcec60833c351a05e4dbd961ce77ca288de5..26dc6683e0d3891f73862da339de85ef5251c7d0 100644 (file)
@@ -2871,7 +2871,10 @@ try_dlopen (phandle, filename)
 #endif
                   )))
        {
-         tryall_dlopen (&newhandle, filename);
+          if (tryall_dlopen (&newhandle, filename) != 0)
+            {
+              newhandle = NULL;
+            }
        }
 
       if (!newhandle)