]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_set_rbtree: Add missing expired checks
authorPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 13:31:41 +0000 (15:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 12 May 2020 11:19:34 +0000 (13:19 +0200)
commitcbacf23eb8ebdaeaf4b39675ad116b1b95eeb6e3
treee5a5f497661d53c6078e57c9adc351d3aad9dedb
parent3c1be56106093b9fb46fb0f4a63e801ca0d7eee2
netfilter: nft_set_rbtree: Add missing expired checks

Expired intervals would still match and be dumped to user space until
garbage collection wiped them out. Make sure they stop matching and
disappear (from users' perspective) as soon as they expire.

Fixes: 0c8bc0ca986d5 ("netfilter: nft_set_rbtree: add timeout support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c