]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: fix rule replacement with anon sets
authorFlorian Westphal <fw@strlen.de>
Sun, 19 Nov 2023 12:05:55 +0000 (13:05 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 20 Nov 2023 13:11:12 +0000 (14:11 +0100)
commit256904b1ded6314974dddc75726149f7b19d33f4
tree29b6aeda05204120ccbbb0630af738bc09c94cf8
parentbaf85d485f91f82d54b3cac3ab5d4893c9c930f8
evaluate: fix rule replacement with anon sets

nft replace rule t c handle 3 'jhash ip protocol . ip saddr mod 170 vmap { 0-94 : goto wan1, 95-169 : goto wan2, 170-269 }"'
BUG: unhandled op 2
nft: src/evaluate.c:1748: interval_set_eval: Assertion `0' failed.

Fixes: 81e36530fcac ("src: replace interval segment tree overlap and automerge")
Reported-by: Tino Reichardt <milky-netfilter@mcmilk.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c