From 6b8487f44ba0e457ddc3df21726b427fcdbfc6e1 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 31 Mar 2021 21:11:49 -0500 Subject: [PATCH] kinit: Fix kinit -R crash --- kuser/kinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuser/kinit.c b/kuser/kinit.c index c57bd6fa3..e8557a260 100644 --- a/kuser/kinit.c +++ b/kuser/kinit.c @@ -447,7 +447,7 @@ renew_validate(krb5_context context, if (ret2 == 0 && krb5_principal_compare(context, principal, in.client)) { krb5_cc_close(context, *cachep); - *cachep = def_ccache; + cache = *cachep = def_ccache; def_ccache = NULL; ret = 0; }