From: Alan T. DeKok Date: Mon, 7 Feb 2022 13:30:11 +0000 (-0500) Subject: remove the child nodes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21065f8d3e2ced40cd351dae5e616931e6c447dd;p=thirdparty%2Ffreeradius-server.git remove the child nodes --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index c801b2c5d81..22428b41f36 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -423,6 +423,7 @@ static int xlat_logical_instantiate(xlat_inst_ctx_t const *xctx) xlat_logical_inst_t *inst = talloc_get_type_abort(xctx->inst, xlat_logical_inst_t); inst->args = xctx->ex->child; + xctx->ex->child = NULL; inst->sense = (xctx->ex->call.func->token == T_LOR); return 0;