Extend expr_cmp() to compare xfrm expressions used in relational. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/optimize.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/optimize.c b/src/optimize.c index 04c92575c4b0..919f8013046b 100644 --- a/src/optimize.c +++ b/src/optimize.c @@ -87,6 +87,12 @@ static bool __expr_cmp(const struct expr *expr_a, const struct expr *expr_b) if (expr_a->osf.flags != expr_b->osf.flags) return false; break; + case EXPR_XFRM: + if (expr_a->xfrm.key != expr_b->xfrm.key) + return false; + if (expr_a->xfrm.direction != expr_b->xfrm.direction) + return false; + break; default: return false; } -- 2.30.2