From e4be5e71b3098990a9de169fa6415787890802da Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 17 Jul 2006 15:44:24 +0000 Subject: [PATCH] stdcc.c: fix v2 version of krb5_stdcc_resolve() cc_open() returning CC_NOEXIST should not be considered fatal. ticket: 3961 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18329 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ccapi/stdcc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/ccache/ccapi/stdcc.c b/src/lib/krb5/ccache/ccapi/stdcc.c index 277b29cdc..34428c08c 100644 --- a/src/lib/krb5/ccache/ccapi/stdcc.c +++ b/src/lib/krb5/ccache/ccapi/stdcc.c @@ -898,7 +898,10 @@ krb5_error_code KRB5_CALLCONV krb5_stdcc_resolve &ccapi_data->NamedCache); if (err != CC_NOERROR) { ccapi_data->NamedCache = NULL; - goto errout; + if (err != CC_NO_EXIST) { + retval = cc_err_xlate(err); + goto errout; + } } /* return new cache structure */ -- 2.26.2