From: Tom Yu Date: Fri, 30 Jun 2006 05:59:46 +0000 (+0000) Subject: * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): X-Git-Tag: krb5-1.6-alpha1~229 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae6ff77c0d5c1814b3440bb1d413f185eedf3db9;p=krb5.git * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Oops, krb5_rc_close actually does free rcache, so actually do null rcache on error from krb5_rc_recover_or_initialize. Thanks to Shawn Emery for noticing. ticket: 3962 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18286 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index dc3682757..f88df5ee5 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -117,6 +117,7 @@ krb5_get_server_rcache(krb5_context context, const krb5_data *piece, retval = krb5_rc_recover_or_initialize(context, rcache, context->clockskew); if (retval) { krb5_rc_close(context, rcache); + rcache = 0; goto cleanup; }