diff --git a/lib/krb5/fcache.c b/lib/krb5/fcache.c index 6e59fcb24..25b5a9f18 100644 --- a/lib/krb5/fcache.c +++ b/lib/krb5/fcache.c @@ -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; }