------------------------------------------------------------ revno: 13779 revision-id: squid3@treenet.co.nz-20150321074843-i4s921u2rk1ys6me parent: squid3@treenet.co.nz-20150321073814-ozv1ql6olc2wzn9r fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4213 committer: Amos Jeffries branch nick: 3.5 timestamp: Sat 2015-03-21 00:48:43 -0700 message: Bug 4213: negotiate_kerberos_auth: freeing non-dynamic memory ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20150321074843-i4s921u2rk1ys6me # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # testament_sha1: 4e78a200e31fea9fb4992bf73708b5806a010894 # timestamp: 2015-03-21 08:19:56 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # base_revision_id: squid3@treenet.co.nz-20150321073814-\ # ozv1ql6olc2wzn9r # # Begin patch === modified file 'helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc' --- helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc 2015-02-18 04:10:42 +0000 +++ helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc 2015-03-21 07:48:43 +0000 @@ -540,7 +540,7 @@ if (!check_k5_err(context, "krb5_init_context", ret)) { krb5_kt_default_name(context, default_keytab, MAXPATHLEN); } - keytab_name = default_keytab; + keytab_name = xstrdup(default_keytab); krb5_free_context(context); } else keytab_name = xstrdup(keytab_name_env);