]> git.ipfire.org Git - thirdparty/nftables.git/commit
intervals: fix deletion of multiple ranges with automerge
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 14 Apr 2022 15:47:30 +0000 (17:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Apr 2022 13:03:28 +0000 (15:03 +0200)
commite45b4939a8ef4173805ffaad7729654a3a9de916
tree21c11a1a2c2323185a5374ec6f70a36d076a24ed
parent3b7b22aed894fa1a8495d654d215a335051f6bf1
intervals: fix deletion of multiple ranges with automerge

Iterate over the list of elements to be deleted, then splice one
EXPR_F_REMOVE element at a time to update the list of existing sets
incrementally.

Fixes: 3e8d934e4f722 ("intervals: support to partial deletion with automerge")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/intervals.c