summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-07-13 12:41:42 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-08-05 11:44:05 +0200
commite693e9c67e0b4c5b38ba7ce7d04f718b2da2e2d0 (patch)
tree5a1f430eadf647fef53de0b2831bbaba453c9fb0 /src
parent85fe1601d3578eef9d244e860b9881347a112859 (diff)
downloadsssd-e693e9c67e0b4c5b38ba7ce7d04f718b2da2e2d0.tar.gz
sssd-e693e9c67e0b4c5b38ba7ce7d04f718b2da2e2d0.tar.xz
sssd-e693e9c67e0b4c5b38ba7ce7d04f718b2da2e2d0.zip
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 <preichl@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_ccache.c5
1 files changed, 5 insertions, 0 deletions
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");