From 2a500318906391ceafda2b6eca06ad092040105e Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 23 Jun 1999 10:19:40 +0000 Subject: [PATCH] (get_cred_cache): you cannot reuse the cred cache if the principals are different. close and NULL the old one so that we create a new one. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6349 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/kadm5/init_c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kadm5/init_c.c b/lib/kadm5/init_c.c index 78b541378..c07a2b744 100644 --- a/lib/kadm5/init_c.c +++ b/lib/kadm5/init_c.c @@ -241,6 +241,8 @@ get_cred_cache(krb5_context context, if(client != default_client) { krb5_free_principal(context, default_client); default_client = NULL; + krb5_cc_close(context, id); + id = NULL; } } else if(ccache != NULL) id = ccache;