unlang_t *instruction = frame->instruction;
unlang_stack_state_modcall_t *modcall_state;
+#ifndef NDEBUG
+ int unlang_indent = request->log.unlang_indent;
+#endif
+
/*
* Process a stand-alone child, and fall through
* to dealing with it's parent.
if (*presult == RLM_MODULE_YIELD) {
modcall_state->thread->active_callers++;
} else {
+ rad_assert(unlang_indent == request->log.unlang_indent);
+
rad_assert(*presult >= RLM_MODULE_REJECT);
rad_assert(*presult < RLM_MODULE_NUMCODES);
*priority = instruction->actions[*presult];