]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
parent things properly
authorAlan T. DeKok <aland@freeradius.org>
Thu, 28 Apr 2022 14:41:04 +0000 (10:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 28 Apr 2022 14:43:40 +0000 (10:43 -0400)
src/lib/unlang/xlat_expr.c
src/lib/unlang/xlat_tokenize.c

index 4925da3f9db128a03bd0a44d14cd908262cfbd14..d27f2dd2383ee99318dd11f01900b4a9260b6a68 100644 (file)
@@ -250,7 +250,7 @@ static xlat_exp_t *xlat_groupify_node(TALLOC_CTX *ctx, xlat_exp_t *node)
        group->flags = node->flags;
 
        if (node->next) {
-               group->next = xlat_groupify_node(ctx, node->next);
+               group->next = xlat_groupify_node(group, node->next);
                node->next = NULL;
        }
 
index a3d8b5e1505a5bf76e31ec579d03b385437dfa66..97976a07578a6ea97fe31714906eb3bd61a0677a 100644 (file)
@@ -1440,7 +1440,7 @@ ssize_t xlat_tokenize_argv(TALLOC_CTX *ctx, xlat_exp_head_t **out, xlat_flags_t
                 *      Barewords --may-contain=%{expansions}
                 */
                case T_BARE_WORD:
-                       if (xlat_tokenize_string(node, &node->group->next, &node->flags, &our_in,
+                       if (xlat_tokenize_string(node->group, &node->group->next, &node->flags, &our_in,
                                                  false, our_p_rules, t_rules) < 0) {
                        error:
                                if (our_p_rules != &value_parse_rules_bareword_quoted) {
@@ -1457,7 +1457,7 @@ ssize_t xlat_tokenize_argv(TALLOC_CTX *ctx, xlat_exp_head_t **out, xlat_flags_t
                 *      "Double quoted strings may contain %{expansions}"
                 */
                case T_DOUBLE_QUOTED_STRING:
-                       if (xlat_tokenize_string(node, &node->group->next, &node->flags, &our_in,
+                       if (xlat_tokenize_string(node->group, &node->group->next, &node->flags, &our_in,
                                                  false, &value_parse_rules_double_quoted, t_rules) < 0) goto error;
                        xlat_flags_merge(flags, &node->flags);
                        break;
@@ -1470,7 +1470,7 @@ ssize_t xlat_tokenize_argv(TALLOC_CTX *ctx, xlat_exp_head_t **out, xlat_flags_t
                        char            *str;
                        xlat_exp_t      *child;
 
-                       node->group->next = child = xlat_exp_alloc_null(node);
+                       node->group->next = child = xlat_exp_alloc_null(node->group);
                        xlat_exp_set_type(child, XLAT_BOX);
 
                        slen = fr_sbuff_out_aunescape_until(child, &str, &our_in, SIZE_MAX,