(fcc_move): make sure ->version is uptodate.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22120 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-12-03 22:36:59 +00:00
parent 1816bb6dce
commit 75399b34c3

View File

@@ -776,7 +776,18 @@ fcc_move(krb5_context context, krb5_ccache from, krb5_ccache to)
ret = errno;
krb5_set_error_string(context, "Rename of file failed: %s",
strerror(ret));
return ret;
}
/* make sure ->version is uptodate */
{
krb5_storage *sp;
int fd;
ret = init_fcc (context, to, &sp, &fd);
krb5_storage_free(sp);
fcc_unlock(context, fd);
close(fd);
}
return ret;
}