]> git.ipfire.org Git - thirdparty/iptables.git/commit
ip6tables: Fix checking existence of rule
authorMarkus Boehme <markubo@amazon.com>
Mon, 3 Apr 2023 21:13:47 +0000 (23:13 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 4 Apr 2023 11:26:43 +0000 (13:26 +0200)
commit78850e7dba64a949c440dbdbe557f59409c6db48
treefaae2ef0aea08a3d328b5d2985c3a65b81b20b7f
parent09f0bfe2032454d21e3650e7ac75c4dc53f3c881
ip6tables: Fix checking existence of rule

Pass the proper entry size when creating a match mask for checking the
existence of a rule. Failing to do so causes wrong results.

Reported-by: Jonathan Caicedo <jonathan@jcaicedo.com>
Fixes: eb2546a846776 ("xshared: Share make_delete_mask() between ip{,6}tables")
Signed-off-by: Markus Boehme <markubo@amazon.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/ip6tables.c