}
} else {
- RDEBUG2("Freeing handler");
- /* handler is not required any more, free it now */
- talloc_free(handler);
- }
+ /*
+ * Enable the cached entry on success.
+ */
+ if (handler->eap_ds->request->code == PW_EAP_SUCCESS) {
+ VALUE_PAIR *vp;
- /*
- * Enable the cached entry on success.
- */
- if (handler->eap_ds->request->code == PW_EAP_SUCCESS) {
- VALUE_PAIR *vp;
+ vp = fr_pair_find_by_num(request->state, PW_TLS_CACHE_FILENAME, 0, TAG_ANY);
+ if (vp) (void) chmod(vp->vp_strvalue, S_IRUSR | S_IWUSR);
+ }
- vp = fr_pair_find_by_num(request->state, PW_TLS_CACHE_FILENAME, 0, TAG_ANY);
- if (vp) (void) chmod(vp->vp_strvalue, S_IRUSR | S_IWUSR);
- }
+ /*
+ * Disable the cached entry on failure.
+ */
+ if (handler->eap_ds->request->code == PW_EAP_FAILURE) {
+ VALUE_PAIR *vp;
- /*
- * Disable the cached entry on failure.
- */
- if (handler->eap_ds->request->code == PW_EAP_FAILURE) {
- VALUE_PAIR *vp;
+ vp = fr_pair_find_by_num(request->state, PW_TLS_CACHE_FILENAME, 0, TAG_ANY);
+ if (vp) (void) unlink(vp->vp_strvalue);
+ }
- vp = fr_pair_find_by_num(request->state, PW_TLS_CACHE_FILENAME, 0, TAG_ANY);
- if (vp) (void) unlink(vp->vp_strvalue);
+ RDEBUG2("Freeing handler");
+ /* handler is not required any more, free it now */
+ talloc_free(handler);
}
/*