From: Alan T. DeKok Date: Tue, 7 Jun 2022 21:33:56 +0000 (-0400) Subject: allocate from the correct parent X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86c7d1a93c6fb80edf2d4292d846f2e0dc8162e9;p=thirdparty%2Ffreeradius-server.git allocate from the correct parent --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index 1764f07f93a..86d0d594d48 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -2239,7 +2239,7 @@ ssize_t xlat_tokenize_expression(TALLOC_CTX *ctx, xlat_exp_head_t **out, fr_sbuf *terminal_rules = *p_rules; if (p_rules->terminals) { - MEM(terminal_rules->terminals = fr_sbuff_terminals_amerge(bracket_rules, + MEM(terminal_rules->terminals = fr_sbuff_terminals_amerge(terminal_rules, p_rules->terminals, &operator_terms)); } else { @@ -2336,7 +2336,7 @@ ssize_t xlat_tokenize_ephemeral_expression(TALLOC_CTX *ctx, xlat_exp_head_t **ou *terminal_rules = *p_rules; if (p_rules->terminals) { - MEM(terminal_rules->terminals = fr_sbuff_terminals_amerge(bracket_rules, + MEM(terminal_rules->terminals = fr_sbuff_terminals_amerge(terminal_rules, p_rules->terminals, &operator_terms)); } else {