[1155] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b4pl3: appl/bsd/kcmd.c: close credential cache when done with it

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue Mar 14 10:52:16 1995

From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Tue, 14 Mar 1995 10:55:21 -0500
To: krb5-bugs@MIT.EDU

--- appl/bsd/kcmd.c	1995/03/09 20:01:11	1.4
+++ appl/bsd/kcmd.c	1995/03/09 20:03:46	1.5
@@ -345,6 +345,9 @@
 
     /* Get ticket from credentials cache or kdc */
     status = krb5_get_credentials(0, cc, ret_cred);
+
+    (void) krb5_cc_close(cc);
+
     if (status) goto bad3;
 
     /* Reset internal flags; these should not be sent. */

home help back first fref pref prev next nref lref last post