handler = rad_malloc(sizeof(EAP_HANDLER));
memset(handler, 0, sizeof(EAP_HANDLER));
- if (fr_debug_flag && inst->handler_tree) {
+ if (inst->handler_tree) {
PTHREAD_MUTEX_LOCK(&(inst->handler_mutex));
rbtree_insert(inst->handler_tree, handler);
PTHREAD_MUTEX_UNLOCK(&(inst->handler_mutex));
return;
}
+ if (!check->inst->handler_tree) goto done;
+
PTHREAD_MUTEX_LOCK(&(check->inst->handler_mutex));
if (!rbtree_finddata(check->inst->handler_tree, check->handler)) {
goto done;
/*
* Catch Access-Challenge without response.
*/
- if (fr_debug_flag) {
+ if (inst->handler_tree) {
check_handler_t *check = rad_malloc(sizeof(*check));
check->inst = inst;