From: John Kohl Date: Wed, 3 Apr 1991 09:55:09 +0000 (+0000) Subject: "close" the ccache file when done.. X-Git-Tag: krb5-1.0-alpha5~119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b9e59617e4b34c3fa0cc90c5aa1a9eece04eb4b;p=krb5.git "close" the ccache file when done.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1982 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 9093d3d25..bc5edf402 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -139,6 +139,11 @@ main(argc, argv) com_err(argv[0], code, "while finishing ticket retrieval"); exit(1); } + flags = KRB5_TC_OPENCLOSE; /* turns on OPENCLOSE mode */ + if (code = krb5_cc_set_flags(cache, flags)) { + com_err(argv[0], code, "while closing ccache"); + exit(1); + } exit(0); } else { com_err(argv[0], code, "while retrieving a ticket");