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
This commit is contained in:
Love Hörnquist Åstrand
2008-03-25 13:33:42 +00:00
parent e9764e31f4
commit abd1354315

View File

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