From: Alan T. DeKok Date: Thu, 10 Feb 2022 14:47:41 +0000 (-0500) Subject: groupify child nodes, which is needed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e685f44d4bd9172d697ac304bb104301e1d9bc55;p=thirdparty%2Ffreeradius-server.git groupify child nodes, which is needed --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index a18ec8e6552..699d0d22876 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -1423,8 +1423,12 @@ redo: node->fmt = fr_tokens[op]; node->call.func = func; node->flags = func->flags; - node->child = lhs; - lhs->next = rhs; + + node->child = xlat_groupify_node(node, lhs); + node->child->flags = lhs->flags; + + node->child->next = xlat_groupify_node(node, rhs); + node->child->next->flags = rhs->flags; xlat_flags_merge(&node->flags, &lhs->flags); xlat_flags_merge(&node->flags, &rhs->flags);