From: Alan T. DeKok Date: Thu, 26 May 2022 13:12:34 +0000 (-0400) Subject: parse lists as attributes. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f7996cc1e053bdb7662e7bc4e607fb80e28463;p=thirdparty%2Ffreeradius-server.git parse lists as attributes. Which fixes &Reply-Message getting parsed as &Reply - Message --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index ba2143e7375..295d7516735 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -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) {