]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return PUSHED_CHILD, not YIELD
authorAlan T. DeKok <aland@freeradius.org>
Wed, 31 Mar 2021 15:40:06 +0000 (11:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Apr 2021 09:47:22 +0000 (05:47 -0400)
which saves another bounce through the event loop

src/lib/unlang/module.c

index 50550902cda846b220b50d8593152a6c965f303b..09cef6c03b10fddb74bcc1cfbc001fd7e9b2d923 100644 (file)
@@ -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,