import from HEAD:
[freeradius.git] / libltdl / ltdl.c
index b6a33c7..889f05d 100644 (file)
@@ -3502,10 +3502,6 @@ lt_dlopenext (filename)
     LT_DLMUTEX_SETERROR (LT_DLSTRERROR (FR_DEPLIB));
     return 0;  /* leaks tmp and handle */
   }
-  if (handle && errors) {
-    LT_DLMUTEX_SETERROR (LT_DLSTRERROR (FR_DEPLIB));
-    return 0;  /* leaks tmp and handle */
-  }
 
   /* If we found FILENAME, stop searching -- whether we were able to
      load the file as a module or not.  If the file exists but loading
@@ -3532,10 +3528,6 @@ lt_dlopenext (filename)
   else
     {
       tmp[len] = LT_EOS_CHAR;
-  if (handle && errors) {
-    LT_DLMUTEX_SETERROR (LT_DLSTRERROR (FR_DEPLIB));
-    return 0;  /* leaks tmp and handle */
-  }
     }
 
   strcat(tmp, shlib_ext);