patch from Rainer Weikusat to avoid double-free when
rc_resolve_full() fails due to misconfiguration.
ticket: 3924
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18206
dc483132-0cff-0310-8789-
dd5450dbe970
retval = krb5_rc_recover_or_initialize(context, rcache, context->clockskew);
if (retval) {
krb5_rc_close(context, rcache);
- rcache = 0;
goto cleanup;
}
*rcptr = rcache;
- rcache = 0;
retval = 0;
cleanup:
- if (rcache)
- krb5_xfree(rcache);
if (cachename)
krb5_xfree(cachename);
return retval;