]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix leaks on error in krb5 gss_acquire_cred()
authorGreg Hudson <ghudson@mit.edu>
Mon, 27 Jun 2016 21:49:57 +0000 (17:49 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 2 Sep 2016 22:27:05 +0000 (18:27 -0400)
commit1f612b3d1c241efd95cc0d5027e8273218209898
tree3aed929de01327ad58e054ec0d2024056d561b1b
parentf5cf410ab14ab8811db1cfe6ad4c6acf0c0ba6d6
Fix leaks on error in krb5 gss_acquire_cred()

In acquire_cred_context(), when releasing the partially constructed
cred on error, make sure to free the password and impersonator fields,
and to destroy the ccache if we created it.

(cherry picked from commit ee7315964e52fe351ddb6884e0e8baf1ecce2144)

ticket: 8437
version_fixed: 1.13.7
src/lib/gssapi/krb5/acquire_cred.c