]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
The new LDAP API uses it's own versions of free(), not the standard C
authorhno <>
Sun, 11 Aug 2002 07:54:59 +0000 (07:54 +0000)
committerhno <>
Sun, 11 Aug 2002 07:54:59 +0000 (07:54 +0000)
functions like the old LDAP API..

helpers/basic_auth/LDAP/squid_ldap_auth.c

index 2801ff4fdb7519efd8e1db846f5599ebba94d97b..2958c994037daadc6f79eeb6cc28f1558cdc36b0 100644 (file)
@@ -394,7 +394,7 @@ checkLDAP(LDAP * ld, char *userid, char *password)
            return 1;
        }
        snprintf(dn, sizeof(dn), "%s", userdn);
-       free(userdn);
+       squid_ldap_memfree(userdn);
        ldap_msgfree(res);
     } else {
        snprintf(dn, sizeof(dn), "%s=%s,%s", userattr, userid, basedn);