]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: xlate: init buffer to zero
authorFlorian Westphal <fw@strlen.de>
Mon, 12 Nov 2018 17:04:45 +0000 (18:04 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 12 Nov 2018 17:27:12 +0000 (18:27 +0100)
commit5edb249b25da2d27bca886eb1aa03e6ce65cc8ca
tree2a65e04b4c1ecb26f4c1ed20b0d54db1663c2178
parent9afd2a6e8c547b81a43e6d3565ca5324ba5f5f1e
libxtables: xlate: init buffer to zero

Doesn't affect iptables-xlate, but nft (when built w. xtables support).

Without this, nft can print random content if an extension doesn't
add anything to the output xlate buffer, e.g.

-p mh -m mh

can cause nft to print random data after "meta l4proto mobility",
as mh ->xlate doesn't do anything in this case.

Signed-off-by: Florian Westphal <fw@strlen.de>
libxtables/xtables.c