From: Nick Porter Date: Wed, 1 Feb 2023 16:46:24 +0000 (+0000) Subject: Don't call xlat_process_return() with node->call.func == NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb741ecce11ae7e7e5bee2d1a3de30e4dfd83a9;p=thirdparty%2Ffreeradius-server.git Don't call xlat_process_return() with node->call.func == NULL --- 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; }