krb5: Fix API: ccache failure

This commit is contained in:
Nicolas Williams
2020-08-31 21:20:38 -05:00
committed by Jeffrey Altman
parent 5716b51c18
commit 68eba10cf1

View File

@@ -557,6 +557,11 @@ acc_resolve_2(krb5_context context, krb5_ccache *id, const char *res, const char
}
error = (*a->context->func->open_ccache)(a->context, res, &a->ccache);
if (error == ccErrCCacheNotFound) {
a->ccache = NULL;
a->cache_name = NULL;
return 0;
}
if (error == ccNoError)
error = get_cc_name(a);
if (error != ccNoError) {