From e693e9c67e0b4c5b38ba7ce7d04f718b2da2e2d0 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 13 Jul 2015 12:41:42 +0200 Subject: 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. Reviewed-by: Pavel Reichl --- src/providers/krb5/krb5_ccache.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/providers') diff --git a/src/providers/krb5/krb5_ccache.c b/src/providers/krb5/krb5_ccache.c index e24179c96..f9bb25efd 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"); -- cgit