From: Ken Raeburn <raeburn@mit.edu>
Date: Mon, 10 Nov 2008 23:34:50 +0000 (+0000)
Subject: Delete replay cache before exiting with success indication
X-Git-Tag: krb5-1.7-alpha1~210
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa66f649a59f75a9101358b3b480a74f9c6d5801;p=krb5.git

Delete replay cache before exiting with success indication

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21068 dc483132-0cff-0310-8789-dd5450dbe970
---

diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c
index d5a160793..4332018ad 100644
--- a/src/appl/simple/client/sim_client.c
+++ b/src/appl/simple/client/sim_client.c
@@ -325,6 +325,12 @@ main(argc, argv)
     printf("Sent encrypted message: %d bytes\n", i);
     krb5_free_data_contents(context, &packet);
 
+    retval = krb5_rc_destroy(context, rcache);
+    if (retval) {
+	com_err(progname, retval, "while deleting replay cache");
+	exit(1);
+    }
+
     krb5_auth_con_free(context, auth_context);
     krb5_free_context(context);