svn rev #21644: trunk/src/appl/simple/client/

tlyu@MIT.EDU tlyu at MIT.EDU
Wed Dec 31 12:25:26 EST 2008


http://src.mit.edu/fisheye/changelog/krb5/?cs=21644
Commit By: tlyu
Log Message:
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.


Changed Files:
U   trunk/src/appl/simple/client/sim_client.c
Modified: trunk/src/appl/simple/client/sim_client.c
===================================================================
--- trunk/src/appl/simple/client/sim_client.c	2008-12-31 05:01:45 UTC (rev 21643)
+++ trunk/src/appl/simple/client/sim_client.c	2008-12-31 17:25:25 UTC (rev 21644)
@@ -330,7 +330,7 @@
 	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);
     




More information about the cvs-krb5 mailing list