diff options
author | Ken Raeburn <raeburn@mit.edu> | 2008-11-10 23:34:50 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2008-11-10 23:34:50 +0000 |
commit | fa66f649a59f75a9101358b3b480a74f9c6d5801 (patch) | |
tree | e5795aec660ed99de4625c281982f161219cc105 /src/appl/simple/client/sim_client.c | |
parent | ce3859a2a0dcfbb108bc306e1687096481c8ccf8 (diff) | |
download | krb5-fa66f649a59f75a9101358b3b480a74f9c6d5801.zip krb5-fa66f649a59f75a9101358b3b480a74f9c6d5801.tar.gz krb5-fa66f649a59f75a9101358b3b480a74f9c6d5801.tar.bz2 |
Delete replay cache before exiting with success indication
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21068 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/simple/client/sim_client.c')
-rw-r--r-- | src/appl/simple/client/sim_client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index d5a1607..4332018 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); |