From ae6ff77c0d5c1814b3440bb1d413f185eedf3db9 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 30 Jun 2006 05:59:46 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/krb/srv_rcache.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.26.2