"close" the ccache file when done..
authorJohn Kohl <jtkohl@mit.edu>
Wed, 3 Apr 1991 09:55:09 +0000 (09:55 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 3 Apr 1991 09:55:09 +0000 (09:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1982 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/klist/klist.c

index 9093d3d256790b18ac2d90d8769a7e61971ac252..bc5edf4029ec2c5b9594bc110d2f3eeaa5863870 100644 (file)
@@ -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");