From 6b9e59617e4b34c3fa0cc90c5aa1a9eece04eb4b Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 3 Apr 1991 09:55:09 +0000 Subject: [PATCH] "close" the ccache file when done.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1982 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/klist/klist.c | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- 2.26.2