]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix memory error with Kerberos authentication
authorMarkus Moeller <huaraz@moeller.plus.com>
Sun, 19 May 2013 02:32:47 +0000 (20:32 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 19 May 2013 02:32:47 +0000 (20:32 -0600)
Uninitialized variable 'dp' shows up as
"glibc detected (ext_kerberos_ldap_group_acl): double free or corruption"

see mailing list thread for full details:
http://www.squid-cache.org/mail-archive/squid-users/201305/0031.html

helpers/external_acl/kerberos_ldap_group/kerberos_ldap_group.cc

index 464b6732352b23d1d371ad629d3fe4957981a990..6f0c1cd01b700ab9af5de1561a231b414209333d 100644 (file)
@@ -425,6 +425,7 @@ main(int argc, char *const argv[])
             dp = xstrdup(rfc1738_escape(domain));
         if (!domain && margs.ddomain) {
             domain = xstrdup(margs.ddomain);
+            dp = xstrdup(rfc1738_escape(domain));
             if (debug_enabled)
                 debug((char *) "%s| %s: INFO: Got User: %s set default domain: %s\n", LogTime(), PROGRAM, up, dp);
             else