]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print module rcode only if it doesn't yield
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 Mar 2021 20:45:44 +0000 (16:45 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:10:06 +0000 (16:10 +0100)
src/lib/unlang/module.c

index 82a452ee2516b39811d2301aec5ce8071eb8744e..460d27dddbfe6cb0082464c4421bfd2a467b1e66 100644 (file)
@@ -694,9 +694,6 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re
                return UNLANG_ACTION_STOP_PROCESSING;
        }
 
-       RDEBUG2("%s (%s)", frame->instruction->name ? frame->instruction->name : "",
-               fr_table_str_by_value(mod_rcode_table, rcode, "<invalid>"));
-
        if (ua == UNLANG_ACTION_YIELD) {
                if (stack_depth < unlang_current_depth(request)) return UNLANG_ACTION_PUSHED_CHILD;
                fr_assert(stack_depth == unlang_current_depth(request));
@@ -704,6 +701,9 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re
                return UNLANG_ACTION_YIELD;
        }
 
+       RDEBUG2("%s (%s)", frame->instruction->name ? frame->instruction->name : "",
+               fr_table_str_by_value(mod_rcode_table, rcode, "<invalid>"));
+
        state->thread->active_callers--;
 
        /*