Delete replay cache before exiting with success indication
authorKen Raeburn <raeburn@mit.edu>
Mon, 10 Nov 2008 23:34:50 +0000 (23:34 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 10 Nov 2008 23:34:50 +0000 (23:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21068 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/simple/client/sim_client.c

index d5a160793f6acfa8339cac7077a3210af2e213d8..4332018ad948e31f314826c0b1b38d0b3ddb0a40 100644 (file)
@@ -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);