RDEBUG3("Resuming in %s", mr->self.debug_name);
+ if (!unlang_ops_resume[mr->parent_type]) {
+ *presult = RLM_MODULE_FAIL;
+ return UNLANG_ACTION_CALCULATE_RESULT;
+ }
+
memcpy(&instance, &mr->instance, sizeof(instance));
request->module = mr->self.debug_name;
* the original frame which was used to
* create this resumption frame.
*/
- if (unlang_ops_resume[mr->parent_type]) {
- *presult = request->rcode = unlang_ops_resume[mr->parent_type](request, instance,
- mr->thread, mr->resume_ctx);
- }
+ *presult = request->rcode = unlang_ops_resume[mr->parent_type](request, instance,
+ mr->thread, mr->resume_ctx);
request->module = NULL;