]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix GSS krb5 acceptor acquire_cred error handling
authorGreg Hudson <ghudson@mit.edu>
Mon, 16 Dec 2013 20:37:56 +0000 (15:37 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 16 Dec 2013 20:40:51 +0000 (15:40 -0500)
commitdecccbcb5075f8fbc28a535a9b337afc84a15dee
tree985fd4f8b4c233cd8c1abecddc2816ba775ea66f
parent1cda48a7ed4069cfc052f974ec3d76a9137c8c5a
Fix GSS krb5 acceptor acquire_cred error handling

When acquiring acceptor creds with a specified name, if we fail to
open a replay cache, we leak the keytab handle.  If there is no
specified name and we discover that there is no content in the keytab,
we leak the keytab handle and return the wrong major code.  Memory
leak reported by Andrea Campi.

ticket: 7805
target_version: 1.12.1
tags: pullup
src/lib/gssapi/krb5/acquire_cred.c