From: Jeffrey Altman Date: Mon, 17 Jul 2006 15:44:24 +0000 (+0000) Subject: stdcc.c: fix v2 version of krb5_stdcc_resolve() X-Git-Tag: krb5-1.6-alpha1~211 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4be5e71b3098990a9de169fa6415787890802da;p=krb5.git 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 --- 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 */