avoid double frees in ccache manipulation around gen_new
authorKen Raeburn <raeburn@mit.edu>
Thu, 16 Nov 2006 01:14:14 +0000 (01:14 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 16 Nov 2006 01:14:14 +0000 (01:14 +0000)
commitdd4511f8b92d699a9252f120ce64fc827470de48
tree2f0634faedbfce5603215f22ee59eb8f8ed3fc35
parentb398645d8d98166eaae2461b25ad9023fb8b5433
avoid double frees in ccache manipulation around gen_new

* krb5/krb/vfy_increds.c (krb5_verify_init_creds): If krb5_cc_gen_new fails,
don't both close and destroy the template ccache.
* gssapi/krb5/accept_sec_context.c (rd_and_store_for_creds): Likewise.

ticket: new
target_version: 1.6
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18815 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/krb5/accept_sec_context.c
src/lib/krb5/krb/vfy_increds.c