From: Alan T. DeKok Date: Wed, 31 Mar 2021 15:40:06 +0000 (-0400) Subject: return PUSHED_CHILD, not YIELD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cbc92bf7f986175a1bf12ba556ae68314b5af63;p=thirdparty%2Ffreeradius-server.git return PUSHED_CHILD, not YIELD which saves another bounce through the event loop --- diff --git a/src/lib/unlang/module.c b/src/lib/unlang/module.c index 50550902cda..09cef6c03b1 100644 --- a/src/lib/unlang/module.c +++ b/src/lib/unlang/module.c @@ -459,7 +459,7 @@ unlang_action_t unlang_module_yield_to_xlat(TALLOC_CTX *ctx, fr_value_box_list_t */ if (unlang_xlat_push(ctx, out, request, exp, false) < 0) return UNLANG_ACTION_STOP_PROCESSING; - return UNLANG_ACTION_YIELD; + return UNLANG_ACTION_PUSHED_CHILD; } /** Push a pre-compiled tmpl and resumption state onto the stack for evaluation @@ -506,7 +506,7 @@ unlang_action_t unlang_module_yield_to_tmpl(TALLOC_CTX *ctx, fr_value_box_list_t */ if (unlang_tmpl_push(ctx, out, request, vpt, vps, status) < 0) return UNLANG_ACTION_STOP_PROCESSING; - return UNLANG_ACTION_YIELD; + return UNLANG_ACTION_PUSHED_CHILD; } unlang_action_t unlang_module_yield_to_section(rlm_rcode_t *p_result,