While EXPR_CONCAT and EXPR_LIST share the same layout in struct expr, these expressions are not possible at this stage. Fall back to error out with "invalid mapping expression". Fixes: 02d44b4f9917 ("evaluate: fix expression data corruption") Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/evaluate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/evaluate.c b/src/evaluate.c index a2d5d7c29514..83381b4ef3d0 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -2211,8 +2211,6 @@ static int expr_evaluate_map(struct eval_ctx *ctx, struct expr **expr) mappings = map->mappings; switch (map->mappings->etype) { - case EXPR_CONCAT: - case EXPR_LIST: case EXPR_SET: set_flags |= mappings->set_flags; /* fallthrough */ -- 2.30.2