]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix memory error with Kerberos authentication
authorMarkus Moeller <huaraz@moeller.plus.com>
Sun, 19 May 2013 03:37:59 +0000 (21:37 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 19 May 2013 03:37:59 +0000 (21:37 -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 634d6ecad7f259faf030e91ee456de39c6484dff..6d411d41b8005e07cd03222cae406e68070677ce 100644 (file)
@@ -404,6 +404,7 @@ main(int argc, char *const argv[])
         }
         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, user, domain);
             else