]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Introduce xtables_clear_args()
authorPhil Sutter <phil@nwl.cc>
Wed, 31 Jan 2024 20:40:19 +0000 (21:40 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 1 Feb 2024 13:51:30 +0000 (14:51 +0100)
commitd109e41344b8f54741c0862a44d544a713178dd3
tree5990f301d536ff6977aa5be83c9f32889fcf2177
parent933e605154c439218f73f48b028abbeed336c3c5
xshared: Introduce xtables_clear_args()

Perform struct xtables_args object deinit in a common place, even though
it merely consists of freeing any IP addresses and masks.

This fixes for a memleak in arptables-translate as the check for
h->family didn't catch the value NFPROTO_ARP.

Fixes: 5b7324e0675e3 ("nft-arp: add arptables-translate")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/ip6tables.c
iptables/iptables.c
iptables/xshared.c
iptables/xshared.h
iptables/xtables-translate.c
iptables/xtables.c