diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-10-27 17:05:05 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-10-27 17:05:05 +0000 |
commit | 5abcb10f99de5c732e63679286fa49f1f5766205 (patch) | |
tree | 0b0c16f009e1af86b0cf6dffc43564e06af11646 /src/lib/krb5/krb | |
parent | 1d239c143b1f0c82f792be4180402302ec790b0d (diff) | |
download | krb5-5abcb10f99de5c732e63679286fa49f1f5766205.tar.gz krb5-5abcb10f99de5c732e63679286fa49f1f5766205.tar.xz krb5-5abcb10f99de5c732e63679286fa49f1f5766205.zip |
Don't fail out from krb5_get_credentials() if we can't store a ticket
into the ccache.
ticket: 6812
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24488 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb')
-rw-r--r-- | src/lib/krb5/krb/get_creds.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/krb5/krb/get_creds.c b/src/lib/krb5/krb/get_creds.c index eb96a2df29..ac28598603 100644 --- a/src/lib/krb5/krb/get_creds.c +++ b/src/lib/krb5/krb/get_creds.c @@ -432,11 +432,9 @@ complete(krb5_context context, krb5_tkt_creds_context ctx) ctx->reply_creds->authdata = ctx->authdata; ctx->authdata = NULL; - /* Cache the credential if desired. */ if (!(ctx->req_options & KRB5_GC_NO_STORE)) { - code = krb5_cc_store_cred(context, ctx->ccache, ctx->reply_creds); - if (code != 0) - return code; + /* Try to cache the credential. */ + (void) krb5_cc_store_cred(context, ctx->ccache, ctx->reply_creds); } /* If we were doing constrained delegation, make sure we got a forwardable @@ -572,9 +570,7 @@ step_referrals(krb5_context context, krb5_tkt_creds_context ctx) &ctx->reply_creds->authdata); if (code != 0) return code; - code = krb5_cc_store_cred(context, ctx->ccache, ctx->reply_creds); - if (code != 0) - return code; + (void) krb5_cc_store_cred(context, ctx->ccache, ctx->reply_creds); /* The authdata in this TGT will be copied into subsequent TGTs or the * final credentials, so we don't need to request it again. */ @@ -909,9 +905,7 @@ step_get_tgt(krb5_context context, krb5_tkt_creds_context ctx) path_realm = find_realm_in_path(context, ctx, tgt_realm); if (path_realm != NULL) { /* We got a realm on the expected path, so we can cache it. */ - code = krb5_cc_store_cred(context, ctx->ccache, ctx->cur_tgt); - if (code != 0) - return code; + (void) krb5_cc_store_cred(context, ctx->ccache, ctx->cur_tgt); if (path_realm == ctx->last_realm) { /* We received a TGT for the target realm. */ TRACE_TKT_CREDS_TARGET_TGT(context, ctx->cur_tgt->server); |