moving on top of ourself is simple

This commit is contained in:
Love Hornquist Astrand
2010-10-07 00:01:24 -07:00
parent 3789b1111e
commit ef543041fc

View File

@@ -948,6 +948,13 @@ kcm_op_move_cache(krb5_context context,
return ret;
}
/* move to ourself is simple, done! */
if (strcmp(oldname, newname) == 0) {
free(oldname);
free(newname);
return 0;
}
ret = kcm_ccache_resolve_client(context, client, opcode, oldname, &oldid);
if (ret) {
free(oldname);