]> 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)
committerTom Yu <tlyu@mit.edu>
Thu, 16 Jan 2014 19:45:24 +0000 (14:45 -0500)
commit35f29b11861ca3cac611872a6ce023be0972bf5b
tree5e696240e2a7754586627db7a7d63aa4e1e23a02
parenta32c7a7408dae91a30f644f64ab1fd867ab0a89f
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.

(cherry picked from commit decccbcb5075f8fbc28a535a9b337afc84a15dee)

ticket: 7829 (new)
version_fixed: 1.11.5
status: resolved
src/lib/gssapi/krb5/acquire_cred.c