]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
hoist unresolved xlats, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jun 2022 00:51:23 +0000 (20:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Jun 2022 12:46:28 +0000 (08:46 -0400)
src/lib/unlang/xlat_expr.c

index e3b762ef2fb1273c686760a8b74c4eac84e2a312..8250c3397e70adb91abb3e9bf9ed3cf254687af2 100644 (file)
@@ -1793,7 +1793,7 @@ static ssize_t tokenize_field(xlat_exp_head_t *head, xlat_exp_t **out, fr_sbuff_
         *      the xlat to be a child of this node. Exec and regexes
         *      are left alone, as they are handled by different code.
         */
-       if (tmpl_is_xlat(node->vpt)) {
+       if (tmpl_contains_xlat(node->vpt) && !tmpl_is_exec(node->vpt) && !tmpl_contains_regex(node->vpt)) {
                xlat_exp_head_t *xlat = tmpl_xlat(node->vpt);
 
                talloc_steal(node, xlat);