summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-06-17 02:12:54 +0000
committerTheodore Tso <tytso@mit.edu>1995-06-17 02:12:54 +0000
commitd4f9e59eb6d9a6732573a5f3233122458ef29986 (patch)
treef90e338fe3ea51285ee349b2f739ae3f4907dc75 /src
parentfd04a92e6529814a6b63f486ea7e61d6d0179114 (diff)
Allow the credentials cache argument to be optional; allow it to be
NULL, meaning that the credentials shouldn't be stored in a credentials cache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6087 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/ChangeLog5
-rw-r--r--src/lib/krb5/krb/get_in_tkt.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog
index f805e20eb..a8c0dc05b 100644
--- a/src/lib/krb5/krb/ChangeLog
+++ b/src/lib/krb5/krb/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 16 22:11:21 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * get_in_tkt.c (krb5_get_in_tkt): Allow the credentials cache
+ argument to be optional; allow it to be NULL, meaning that
+ the credentials shouldn't be stored in a credentials cache.
Mon Jun 12 16:49:42 1995 Chris Provenzano (proven@mit.edu)
diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c
index b31f28e92..ca641c5ee 100644
--- a/src/lib/krb5/krb/get_in_tkt.c
+++ b/src/lib/krb5/krb/get_in_tkt.c
@@ -339,8 +339,10 @@ krb5_get_in_tkt(context, options, addrs, etypes, ptypes, key_proc, keyseed,
krb5_xfree(packet);
/* store it in the ccache! */
- if ((retval = krb5_cc_store_cred(context, ccache, creds)))
+ if (ccache) {
+ if ((retval = krb5_cc_store_cred(context, ccache, creds)))
goto cred_cleanup;
+ }
if (ret_as_reply) {
*ret_as_reply = as_reply;