]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: arptables accepts empty interface names
authorPhil Sutter <phil@nwl.cc>
Sat, 14 Nov 2020 14:22:09 +0000 (15:22 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 20 Oct 2021 09:32:54 +0000 (11:32 +0200)
commit142cf72442760ae8fc377bbfb54a913baf84742e
treed213e4ee77c9abc03397b1c21c4e25d467570cff
parentab0a785a72a6be0d4a37e3492069a8719418cfbc
xtables: arptables accepts empty interface names

The empty string passed as interface name is simply ignored by legacy
arptables. Make the new common parser print a warning but accept it.
Calling xtables_parse_interface() with an empty string is safe.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xtables.c