Allow the credentials cache argument to be optional; allow it to be
authorTheodore Tso <tytso@mit.edu>
Sat, 17 Jun 1995 02:12:54 +0000 (02:12 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 17 Jun 1995 02:12:54 +0000 (02:12 +0000)
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
src/lib/krb5/krb/get_in_tkt.c

index f805e20ebe8c0bcfb06730bd38eeaa3c79ab6298..a8c0dc05be4cded682beb690160735820355c3c2 100644 (file)
@@ -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)
 
index b31f28e92b2f147971c9713d8809ede8bc7b8c4e..ca641c5ee64e0976125cc27a3eff1ff80c8c41c5 100644 (file)
@@ -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;