aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2005-04-25 17:40:38 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2005-04-25 17:40:38 +0000
commit1647de0bada208372b3966c4ab7f1e807ee9008d (patch)
tree7969b4250c505320a960cea6e695776607c3dffc /src/lib/krb5
parent6e2d8b4ed34bb438fc8d02389fd1944c67aa70ac (diff)
downloadkrb5-1647de0bada208372b3966c4ab7f1e807ee9008d.zip
krb5-1647de0bada208372b3966c4ab7f1e807ee9008d.tar.gz
krb5-1647de0bada208372b3966c4ab7f1e807ee9008d.tar.bz2
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. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17201 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5')
-rw-r--r--src/lib/krb5/krb/ChangeLog10
-rw-r--r--src/lib/krb5/krb/get_creds.c11
2 files changed, 19 insertions, 2 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog
index 979d17a..26ae8fe 100644
--- a/src/lib/krb5/krb/ChangeLog
+++ b/src/lib/krb5/krb/ChangeLog
@@ -1,3 +1,13 @@
+2005-04024 Jeffrey Altman <jaltman@mit.edu>
+
+ * get_creds.c:
+ 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.
+
+
2005-04-13 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (BISONFLAGS): Drop -v.
diff --git a/src/lib/krb5/krb/get_creds.c b/src/lib/krb5/krb/get_creds.c
index cb6d8b1..7dd3ad6 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;
}