TARGET := unit_test_map
-SOURCES := unit_test_map.c ${top_srcdir}/src/main/modcall.c ${top_srcdir}/src/main/interpreter.c
+SOURCES := unit_test_map.c ${top_srcdir}/src/main/modcall.c ${top_srcdir}/src/main/unlang.c
TGT_PREREQS := libfreeradius-server.a libfreeradius-radius.a
TGT_LDLIBS := $(LIBS)
/*
- * @name interpreter.c
+ * @name unlang.c
*
* Version: $Id$
*
#if 0
int depth = stack->depth;
#endif
- unlang_module_call_t *sp;
+ unlang_module_call_t *sp;
unlang_stack_frame_t *frame = &stack->frame[stack->depth];
unlang_t *instruction = frame->instruction;
+ module_thread_instance_t *thread_inst;
/*
* Process a stand-alone child, and fall through
goto fail;
}
+ /*
+ * Grab the thread/module specific data if any exists.
+ */
+ thread_inst = module_thread_instance_find(sp->module_instance);
+
/*
* For logging unresponsive children.
*/
request->module = sp->module_instance->name;
safe_lock(sp->module_instance);
- request->rcode = sp->method(sp->module_instance->data, NULL, request);
+ request->rcode = sp->method(sp->module_instance->data, thread_inst, request);
safe_unlock(sp->module_instance);
request->module = NULL;