From abd13543154bafe3ad48b9ecca35ce885bef4dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 25 Mar 2008 13:33:42 +0000 Subject: [PATCH] Make work when moving to a non-existant cred-cache. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22785 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kcm/protocol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kcm/protocol.c b/kcm/protocol.c index 0b7181192..ee29c3d70 100644 --- a/kcm/protocol.c +++ b/kcm/protocol.c @@ -989,7 +989,10 @@ kcm_op_move_cache(krb5_context context, } ret = kcm_ccache_resolve_client(context, client, opcode, newname, &newid); + if (ret == KRB5_FCC_NOFILE) + ret = kcm_ccache_new_client(context, client, newname, &newid); free(newname); + if (ret) { free(oldname); kcm_release_ccache(context, &oldid);