catch error

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23513 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-08-11 10:01:07 +00:00
parent 225a6e45af
commit 9407642396

View File

@@ -134,11 +134,14 @@ static OM_uint32 acquire_initiator_cred
* errors while searching. * errors while searching.
*/ */
if (handle->principal) if (handle->principal) {
kret = krb5_cc_cache_match (context, kret = krb5_cc_cache_match (context,
handle->principal, handle->principal,
NULL, NULL,
&ccache); &ccache);
if (kret)
goto end;
}
if (ccache == NULL) { if (ccache == NULL) {
kret = krb5_cc_default(context, &ccache); kret = krb5_cc_default(context, &ccache);