]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Emmanuel Dreyfus fixed not being able to find ber_free() in
authorYang Tse <yangsita@gmail.com>
Mon, 12 Mar 2007 05:09:25 +0000 (05:09 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 12 Mar 2007 05:09:25 +0000 (05:09 +0000)
libldap when available in liblber.

lib/ldap.c

index 991204fd0719989ee64aee06e32dcb31e6e43163..61813bb2b4d536540e440f0fb6f9bae6c0fa24ac 100644 (file)
@@ -200,6 +200,11 @@ static dynafunc DynaGetFunction(const char *name)
      * compilers! */
     *(void**) (&func) = dlsym(libldap, name);
   }
+#ifdef DL_LBER_FILE
+  if (!func && liblber) {
+    *(void**) (&func) = dlsym(liblber, name);
+  }
+#endif
 #elif defined(WIN32)
   if (libldap) {
     func = (dynafunc)GetProcAddress((HINSTANCE)libldap, name);