diff options
Diffstat (limited to 'src/lib/krb5/krb/get_creds.c')
-rw-r--r-- | src/lib/krb5/krb/get_creds.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/krb5/krb/get_creds.c b/src/lib/krb5/krb/get_creds.c index cb6d8b1e39..7dd3ad6c94 100644 --- a/src/lib/krb5/krb/get_creds.c +++ b/src/lib/krb5/krb/get_creds.c @@ -173,8 +173,15 @@ krb5_get_credentials(krb5_context context, krb5_flags options, && not_ktype) retval = KRB5_CC_NOT_KTYPE; - if (!retval) - retval = krb5_cc_store_cred(context, ccache, *out_creds); + if (!retval) { + /* the purpose of the krb5_get_credentials call is to + * obtain a set of credentials for the caller. the + * krb5_cc_store_cred() call is to optimize performance + * for future calls. Ignore any errors, since the credentials + * are still valid even if we fail to store them in the cache. + */ + krb5_cc_store_cred(context, ccache, *out_creds); + } return retval; } |