]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Use xtables_{m,c}alloc() everywhere
authorPhil Sutter <phil@nwl.cc>
Tue, 31 Aug 2021 10:29:43 +0000 (12:29 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 31 Aug 2021 16:19:04 +0000 (18:19 +0200)
commite438b9766fcc86d9847312ff05f1d1dac61acf1f
tree2a7a550cd343caadb67a2e2331d533c56dc0f4da
parentca11c7b7036b5821c17b8d08dc2a29f55b461a93
nft: Use xtables_{m,c}alloc() everywhere

Make use of libxtables allocators where sensible to have implicit error
checking. Leave library-internal calls in place to not create unexpected
program exit points for users, apart from xt_xlate_alloc() as that
function called xtables_error() in error case which exits by itself
already.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-bridge.c
iptables/nft-cmd.c
iptables/nft.c
iptables/xshared.c
iptables/xtables-eb.c
libxtables/xtables.c