]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove the child nodes
authorAlan T. DeKok <aland@freeradius.org>
Mon, 7 Feb 2022 13:30:11 +0000 (08:30 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 7 Feb 2022 20:09:19 +0000 (15:09 -0500)
src/lib/unlang/xlat_expr.c

index c801b2c5d816354fad0e93525650c1d05cb955cb..22428b41f363fb56d0070a851b166ff928b3ca04 100644 (file)
@@ -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;