Chains are now expressions, do not assume a constant value is used. Fixes: f1e8a129ee42 ("src: Introduce chain_expr in jump and goto statements") Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expression.c b/src/expression.c index a41e2dafe9fc..ef694f2a194d 100644 --- a/src/expression.c +++ b/src/expression.c @@ -217,7 +217,7 @@ static void verdict_expr_clone(struct expr *new, const struct expr *expr) { new->verdict = expr->verdict; if (expr->chain != NULL) - mpz_init_set(new->chain->value, expr->chain->value); + new->chain = expr_clone(expr->chain); } static void verdict_expr_destroy(struct expr *expr) -- 2.11.0