]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
lists are resolved as attributes
authorAlan T. DeKok <aland@freeradius.org>
Fri, 20 May 2022 13:41:18 +0000 (09:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 May 2022 16:09:02 +0000 (12:09 -0400)
src/lib/unlang/xlat_eval.c

index a063adc703b1ec6c1766cfad55e6157a1ebf54da..26f41340330315a5de6beea3de11098f6a6294aa 100644 (file)
@@ -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!