Message ID | 20231018125605.27299-4-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | d111692a59c1470ae530cbb39bcf0346c950ecc7 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/4] netfilter: nf_tables: audit log object reset once per table | expand |
diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c index 2660ceab3759..e34662f4a71e 100644 --- a/net/netfilter/nft_set_rbtree.c +++ b/net/netfilter/nft_set_rbtree.c @@ -568,6 +568,8 @@ static void *nft_rbtree_deactivate(const struct net *net, nft_rbtree_interval_end(this)) { parent = parent->rb_right; continue; + } else if (nft_set_elem_expired(&rbe->ext)) { + break; } else if (!nft_set_elem_active(&rbe->ext, genmask)) { parent = parent->rb_left; continue;