From eeb741ecce11ae7e7e5bee2d1a3de30e4dfd83a9 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Wed, 1 Feb 2023 16:46:24 +0000 Subject: [PATCH] Don't call xlat_process_return() with node->call.func == NULL --- src/lib/unlang/xlat_eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index 81fa6eebd9c..0e260df1183 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -825,7 +825,8 @@ xlat_action_t xlat_frame_eval_resume(TALLOC_CTX *ctx, fr_dcursor_t *out, case XLAT_ACTION_DONE: fr_dcursor_next(out); /* Wind to the start of this functions output */ RDEBUG2("| --> %pV", fr_dcursor_current(out)); - if (!xlat_process_return(request, node->call.func, (FR_DLIST_HEAD(fr_value_box_list) *)out->dlist, + if (node->call.func && + !xlat_process_return(request, node->call.func, (FR_DLIST_HEAD(fr_value_box_list) *)out->dlist, fr_dcursor_current(out))) { return XLAT_ACTION_FAIL; } -- 2.47.3