]> git.ipfire.org Git - thirdparty/iptables.git/commit
*tables: Reject invalid chain names when renaming
authorPhil Sutter <phil@nwl.cc>
Fri, 21 Jul 2023 18:14:09 +0000 (20:14 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 28 Jul 2023 12:27:15 +0000 (14:27 +0200)
commit344e9b260ba2bbbdd0c32f112273fd552d0b73f4
tree32f2070716ef961d5e18096633b3c19392c677dc
parent4a2b2008fdf4df980433f99a6d8f2003f2005296
*tables: Reject invalid chain names when renaming

While given chain name was sanity checked with --new-chain command,
--rename-chain command allowed to choose an invalid name. Keep things
consistent by adding the missing check.

Fixes: e6869a8f59d77 ("reorganized tree after kernel merge")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.c