summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5/krb5_ccache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/krb5/krb5_ccache.c')
-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");