From: Arran Cudbard-Bell Date: Sun, 3 Sep 2023 17:10:50 +0000 (-0600) Subject: xlat: Alternate doesn't have format strings anymore X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a2f0002964213d1edaf9da657677602a1a92aca;p=thirdparty%2Ffreeradius-server.git xlat: Alternate doesn't have format strings anymore --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index 9dc83597f7a..8174d6e6034 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -1009,8 +1009,8 @@ xlat_action_t xlat_frame_eval_repeat(TALLOC_CTX *ctx, fr_dcursor_t *out, break; } - XLAT_DEBUG("** [%i] %s(alt-first) - string empty, evaluating alternate: %s", - unlang_interpret_stack_depth(request), __FUNCTION__, (*in)->alternate[1]->fmt); + XLAT_DEBUG("** [%i] %s(alt-first) - string empty, evaluating alternate", + unlang_interpret_stack_depth(request), __FUNCTION__); *child = (*in)->alternate[1]; *alternate = true; @@ -1022,7 +1022,6 @@ xlat_action_t xlat_frame_eval_repeat(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_debug_log_expansion(request, *in, NULL, __LINE__); xlat_debug_log_list_result(request, *in, result); - VALUE_BOX_TALLOC_LIST_VERIFY(result); fr_value_box_list_move((fr_value_box_list_t *)out->dlist, result); } break; @@ -1295,8 +1294,7 @@ xlat_action_t xlat_frame_eval(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_exp_head_ #endif case XLAT_ALTERNATE: - XLAT_DEBUG("** [%i] %s(alternate) - %%{%%{%s}:-%%{%s}}", unlang_interpret_stack_depth(request), - __FUNCTION__, node->alternate[0]->fmt, node->alternate[1]->fmt); + XLAT_DEBUG("** [%i] %s(alternate)", unlang_interpret_stack_depth(request), __FUNCTION__); fr_assert(node->alternate[0] != NULL); fr_assert(node->alternate[1] != NULL);