cURL / Mailing Lists / curl-users / Single Mail

curl-users

LDAP handle-leak

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 30 Jun 2003 20:37:19 +0200

It seems the .\lib\ldap.c is wrong in that it never allocates
a value for 'liblber'. Yet it tries to close that handle.
IMHO causing handle-leaks for "liblber.so". Shouldn't that be:

#if defined(HAVE_DLOPEN) || defined(HAVE_LIBDL)
  if (liblber == NULL) {
    /*
     * libldap.so should be able to resolve its dependency on
     * liblber.so automatically, but since it does not we will
     * handle it here by opening liblber.so as global.
     */
    liblber = dlopen("liblber.so",
    ...

Gisle V.

# rm /bin/laden
/bin/laden: Not found

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Received on 2003-06-30