From: Tom Yu Date: Wed, 31 Dec 2008 17:25:25 +0000 (+0000) Subject: Set auth_context's rcache to NULL after destroying and before calling X-Git-Tag: krb5-1.7-alpha1~123 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02082d6f9342489007eb7ea0279f8149e9066300;p=krb5.git Set auth_context's rcache to NULL after destroying and before calling krb5_auth_con_free, to avoid crashing when krb5_rc_close tries to run using a destroyed rcache handle. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21644 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index 4332018ad..4873f89af 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -330,7 +330,7 @@ main(argc, argv) com_err(progname, retval, "while deleting replay cache"); exit(1); } - + krb5_auth_con_setrcache(context, auth_context, NULL); krb5_auth_con_free(context, auth_context); krb5_free_context(context);