]> 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:53:57 +0000 (07:53 +0000)
committerhno <>
Sun, 11 Aug 2002 07:53:57 +0000 (07:53 +0000)
functions like the old LDAP API..

helpers/basic_auth/LDAP/squid_ldap_auth.c

index d48ad7c186eca40b0fae04a3092cdb68d806f582..2801ff4fdb7519efd8e1db846f5599ebba94d97b 100644 (file)
@@ -96,7 +96,11 @@ squid_ldap_set_referrals(LDAP * ld, int referrals)
     int *value = referrals ? LDAP_OPT_ON : LDAP_OPT_OFF;
     ldap_set_option(ld, LDAP_OPT_REFERRALS, value);
 }
-
+static void
+squid_ldap_memfree(char *p)
+{
+    ldap_memfree(p);
+}
 #else
 static int
 squid_ldap_errno(LDAP * ld)
@@ -116,6 +120,11 @@ squid_ldap_set_referrals(LDAP * ld, int referrals)
     else
        ld->ld_options &= ~LDAP_OPT_REFERRALS;
 }
+static void
+squid_ldap_memfree(char *p)
+{
+    free(p);
+}
 #endif
 
 int