From 90157be65aadfa68d2354a2a74287451d3f9e1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 8 Oct 2008 16:14:53 +0000 Subject: [PATCH] KRB5_CC_NOTFOUND is ok from krb5_cc_remove_cred(). git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23876 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/cache.c b/lib/krb5/cache.c index f8eb5a737..34786d8b2 100644 --- a/lib/krb5/cache.c +++ b/lib/krb5/cache.c @@ -1211,8 +1211,8 @@ krb5_cc_set_config(krb5_context context, krb5_ccache id, /* Remove old configuration */ ret = krb5_cc_remove_cred(context, id, 0, &cred); - if (ret) - goto out; + if (ret != KRB5_CC_NOTFOUND) + goto out; /* not that anyone care when this expire */ cred.times.authtime = time(NULL);