]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't call xlat_process_return() with node->call.func == NULL
authorNick Porter <nick@portercomputing.co.uk>
Wed, 1 Feb 2023 16:46:24 +0000 (16:46 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 1 Feb 2023 18:33:06 +0000 (18:33 +0000)
src/lib/unlang/xlat_eval.c

index 81fa6eebd9c57826f36506188f1c4b3e7fc01e0f..0e260df1183cac0a64e2420c8142b5a1b4d5bd5f 100644 (file)
@@ -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;
                }