From 81293d93345a355e7d661d70cbc28610982c581d Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 22 Nov 2011 17:04:35 -0600 Subject: [PATCH] krb5_get_init_creds*() should not krb5_cc_close() the FAST ccache! --- lib/krb5/init_creds_pw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index e63986016..7443a790c 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -154,10 +154,10 @@ free_init_creds_ctx(krb5_context context, krb5_init_creds_context ctx) free(ctx->password); } /* - * FAST state + * FAST state (we don't close the armor_ccache because we might have + * to destroy it, and how would we know? also, the caller should + * take care of cleaning up the armor_ccache). */ - if (ctx->fast_state.armor_ccache) - krb5_cc_close(context, ctx->fast_state.armor_ccache); if (ctx->fast_state.armor_crypto) krb5_crypto_destroy(context, ctx->fast_state.armor_crypto); krb5_free_keyblock_contents(context, &ctx->fast_state.armor_key);