]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Fix for broken chain renaming
authorPhil Sutter <phil@nwl.cc>
Tue, 17 Nov 2020 10:38:27 +0000 (11:38 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 17 Nov 2020 11:52:09 +0000 (12:52 +0100)
commit55b7c71dce7144f4dc0297c17abf0f04879ee247
tree2f49bbbe63bb05598e9e7f396f4c98075a185c19
parent83ee6e179829461572be6583ce6e83f68e636eb6
ebtables: Fix for broken chain renaming

Loading extensions pollutes 'errno' value, hence before using it to
indicate failure it should be sanitized. This was done by the called
function before the parsing/netlink split and not migrated by accident.
Move it into calling code to clarify the connection.

Fixes: a7f1e208cdf9c ("nft: split parsing from netlink commands")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c
iptables/tests/shell/testcases/ebtables/0001-ebtables-basic_0
iptables/xtables-eb.c