From 35d259739da8654e1e6a9bfec845c1a8ff66c1f6 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 7 Oct 2010 00:01:24 -0700 Subject: [PATCH] moving on top of ourself is simple --- kcm/protocol.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kcm/protocol.c b/kcm/protocol.c index de65599d8..a019edd06 100644 --- a/kcm/protocol.c +++ b/kcm/protocol.c @@ -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); -- 2.11.4.GIT