[1475] in Kerberos-V5-bugs
minor patch to get_in_tkt.c
daemon@ATHENA.MIT.EDU (Brian Kantor)
Wed Jun 14 19:11:29 1995
Date: Wed, 14 Jun 1995 16:11:18 -0700
From: brian@nothing.ucsd.edu (Brian Kantor)
To: krb5-bugs@MIT.EDU
The following patch to get_in_tkt.c allows that routine to be called to
obtain credentials with a NULL ccache pointer for those occasions where
you won't be storing the credentials on disk - for example, in a terminal
server or other device which doesn't have a filesystem.
- Brian
===================================================================
RCS file: RCS/get_in_tkt.c,v
retrieving revision 1.1
diff -c -r1.1 get_in_tkt.c
*** /tmp/,RCSt1a16367 Wed Jun 14 16:07:45 1995
--- get_in_tkt.c Wed Jun 14 16:05:01 1995
***************
*** 339,346 ****
krb5_xfree(packet);
/* store it in the ccache! */
! if (retval = krb5_cc_store_cred(context, ccache, creds))
! goto cred_cleanup;
if (ret_as_reply) {
*ret_as_reply = as_reply;
--- 339,348 ----
krb5_xfree(packet);
/* store it in the ccache! */
! if (ccache) {
! if (retval = krb5_cc_store_cred(context, ccache, creds))
! goto cred_cleanup;
! }
if (ret_as_reply) {
*ret_as_reply = as_reply;