netfilter: ctnetlink: fix filtering for zone 0
authorFelix Huettner <felix.huettner@mail.schwarz>
Mon, 5 Feb 2024 09:59:59 +0000 (09:59 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 8 Feb 2024 11:10:18 +0000 (12:10 +0100)
commitfa173a1b4e3fd1ab5451cbc57de6fc624c824b0a
treef149bfb89ce89c32194f5178c0385c897a8c57d6
parent27c5a095e2518975e20a10102908ae8231699879
netfilter: ctnetlink: fix filtering for zone 0

previously filtering for the default zone would actually skip the zone
filter and flush all zones.

Fixes: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone")
Reported-by: Ilya Maximets <i.maximets@ovn.org>
Closes: https://lore.kernel.org/netdev/2032238f-31ac-4106-8f22-522e76df5a12@ovn.org/
Signed-off-by: Felix Huettner <felix.huettner@mail.schwarz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c
tools/testing/selftests/netfilter/conntrack_dump_flush.c