From: Yang Tse Date: Mon, 12 Mar 2007 05:09:25 +0000 (+0000) Subject: Emmanuel Dreyfus fixed not being able to find ber_free() in X-Git-Tag: curl-7_16_2~186 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b66def2b4ca113428f48d4f89f007a36d36bc163;p=thirdparty%2Fcurl.git Emmanuel Dreyfus fixed not being able to find ber_free() in libldap when available in liblber. --- diff --git a/lib/ldap.c b/lib/ldap.c index 991204fd07..61813bb2b4 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -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);