From: Alan T. DeKok Date: Fri, 20 May 2022 13:41:18 +0000 (-0400) Subject: lists are resolved as attributes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be132c22a2108b8490785384e56c4f17c5b43ca6;p=thirdparty%2Ffreeradius-server.git lists are resolved as attributes --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index a063adc703b..26f41340330 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -1260,12 +1260,14 @@ xlat_action_t xlat_frame_eval(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_exp_head_ fr_value_box_copy(value, value, tmpl_value(node->vpt)); /* Also dups taint */ fr_dlist_insert_tail(&result, value); - } else if (tmpl_is_attr(node->vpt)) { + + } else if (tmpl_is_attr(node->vpt) || tmpl_is_list(node->vpt)) { XLAT_DEBUG("** [%i] %s(attribute) - %%{%s}", unlang_interpret_stack_depth(request), __FUNCTION__, node->fmt); xlat_debug_log_expansion(request, node, NULL); if (xlat_eval_pair_real(ctx, &result, request, node->vpt) == XLAT_ACTION_FAIL) goto fail; + } else { /* * @todo - write code here!