kinit: Fix kinit -R crash

This commit is contained in:
Nicolas Williams
2021-03-31 21:11:49 -05:00
parent afa1624682
commit 6b8487f44b

View File

@@ -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;
}