>From 6cb368672f511f55e22080750ec617b7292d6810 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 13 Jul 2015 12:41:42 +0200 Subject: [PATCH] KRB5: Do not try to remove missing ccache There was a misleading debug message in krb5_child [[sssd[krb5_child[16629]]]] [get_and_save_tgt] (0x0080): Failed to remove old ccache file [(null)], please remove it manually. --- src/providers/krb5/krb5_ccache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/providers/krb5/krb5_ccache.c b/src/providers/krb5/krb5_ccache.c index e24179c96bf479f7ceffa8a849ba946bea1634f6..f9bb25efd4ca3257845c3b157667d21d24299f4a 100644 --- a/src/providers/krb5/krb5_ccache.c +++ b/src/providers/krb5/krb5_ccache.c @@ -354,6 +354,11 @@ errno_t sss_krb5_cc_destroy(const char *ccname, uid_t uid, gid_t gid) TALLOC_CTX *tmp_ctx; errno_t ret; + if (ccname == NULL) { + /* nothing to remove */ + return EOK; + } + tmp_ctx = talloc_new(NULL); if (tmp_ctx == NULL) { DEBUG(SSSDBG_OP_FAILURE, "talloc_new failed.\n"); -- 2.4.3