From d4f9e59eb6d9a6732573a5f3233122458ef29986 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 17 Jun 1995 02:12:54 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/get_in_tkt.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.26.2