]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
parse lists as attributes.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 26 May 2022 13:12:34 +0000 (09:12 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Jun 2022 11:15:39 +0000 (07:15 -0400)
Which fixes &Reply-Message getting parsed as

&Reply - Message

src/bin/unit_test_attribute.c

index ba2143e7375c1cc327053e4ca47badb0f717ec46..295d7516735115443959a4d95f791f97d86b98cf 100644 (file)
@@ -2711,7 +2711,8 @@ static size_t command_xlat_expr(command_result_t *result, command_file_ctx_t *cc
                                                .attr = {
                                                        .dict_def = cc->tmpl_rules.attr.dict_def ?
                                                           cc->tmpl_rules.attr.dict_def : cc->config->dict,
-                                                       .allow_unresolved = cc->tmpl_rules.attr.allow_unresolved
+                                                       .allow_unresolved = cc->tmpl_rules.attr.allow_unresolved,
+                                                       .list_as_attr = true,
                                                }
                                           });
        if (dec_len <= 0) {
@@ -2750,7 +2751,8 @@ static size_t command_xlat_purify(command_result_t *result, command_file_ctx_t *
                                                   .attr = {
                                                        .dict_def = cc->tmpl_rules.attr.dict_def ?
                                                           cc->tmpl_rules.attr.dict_def : cc->config->dict,
-                                                       .allow_unresolved = cc->tmpl_rules.attr.allow_unresolved
+                                                       .allow_unresolved = cc->tmpl_rules.attr.allow_unresolved,
+                                                       .list_as_attr = true,
                                                   },
                                           });
        if (dec_len <= 0) {