]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Compat: permit LDAP helepr to use std memory allocators
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Apr 2010 01:20:51 +0000 (13:20 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Apr 2010 01:20:51 +0000 (13:20 +1200)
helpers/basic_auth/LDAP/basic_ldap_auth.cc

index 5ec4ba0a9711bc34e8f442f9ed3d6f6d2ebdbbc9..80153a3d0ee898841a117505208b203b5443aa2c 100644 (file)
@@ -82,6 +82,9 @@
  *             - Allow full filter specifications in -f
  */
 
+#define SQUID_NO_ALLOC_PROTECT 1
+#include "config.h"
+
 #define LDAP_DEPRECATED 1
 
 #include "rfc1738.h"
@@ -89,7 +92,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <stdlib.h>
 #include <ctype.h>
 
 #ifdef _SQUID_MSWIN_           /* Native Windows port and MinGW */
@@ -126,7 +128,7 @@ PFldap_start_tls_s Win32_ldap_start_tls_s;
 
 #endif
 
-#define PROGRAM_NAME "squid_ldap_auth"
+#define PROGRAM_NAME "basic_ldap_auth"
 
 /* Global options */
 static const char *basedn;