From: Nick Porter Date: Thu, 26 Jan 2023 17:15:29 +0000 (+0000) Subject: List tmpls should not be NUM_ALL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232e40c84eb3e7bf10cb79712ce559e094d38058;p=thirdparty%2Ffreeradius-server.git List tmpls should not be NUM_ALL There is only ever one instance of each list pair. --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 277c36d4151..6589ea66286 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -852,7 +852,7 @@ int unlang_fixup_update(map_t *map, void *ctx) if (!ctx) { switch (map->lhs->type) { case TMPL_TYPE_ATTR: - tmpl_attr_rewrite_leaf_num(map->lhs, NUM_UNSPEC, NUM_ALL); + if (!tmpl_is_list(map->lhs)) tmpl_attr_rewrite_leaf_num(map->lhs, NUM_UNSPEC, NUM_ALL); break; default: @@ -864,7 +864,7 @@ int unlang_fixup_update(map_t *map, void *ctx) */ switch (map->rhs->type) { case TMPL_TYPE_ATTR: - tmpl_attr_rewrite_leaf_num(map->rhs, NUM_UNSPEC, NUM_ALL); + if (!tmpl_is_list(map->rhs)) tmpl_attr_rewrite_leaf_num(map->rhs, NUM_UNSPEC, NUM_ALL); break; default: