]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't reset module on resume.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 14 Dec 2023 15:07:42 +0000 (10:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 14 Dec 2023 15:07:42 +0000 (10:07 -0500)
it breaks the debug output

src/lib/unlang/module.c

index a082420ec38d77ca4eff346e14c9c0173433b3c6..6794b567baf3b0a8599b2b7fd12199223712df80 100644 (file)
@@ -715,12 +715,8 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re
 
        fr_assert(state->resume != NULL);
 
-       /*
-        *      Lock is noop unless instance->mutex is set.
-        */
-       request->module = mc->instance->name;
-
        resume = state->resume;
+
        /*
         *      The module *MUST* explicitly set the resume
         *      function when yielding or pushing children
@@ -728,6 +724,9 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re
         */
        state->resume = NULL;
 
+       /*
+        *      Lock is noop unless instance->mutex is set.
+        */
        safe_lock(mc->instance);
        ua = resume(&state->rcode, MODULE_CTX(mc->instance->dl_inst, state->thread->data,
                                              state->env_data, state->rctx), request);