xtables: arp: Parse properly target's options
PATCH v2 1/1 xtables: arp: Parse properly target's options
Without this, target never gets its options parsed, so it's a bug.
Signed-off-by Tomasz Bursztyka <[email protected]>
--- iptables/xtables-arp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
iptables/xtables-arp.c +4 -2
@@ -1317,6 +1317,10 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table)exit_tryhelp (2 );default : +if (target) { +xtables_option_tpcall (c, argv, + invert, target, &fw); + }break ; } invert = FALSE;
@@ -1325,8 +1329,6 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table)if (target)xtables_option_tfcall (target); -/* Fix me: must put inverse options checking here --MN */ -if (optind < argc)xtables_error (PARAMETER_PROBLEM ,"unknown arguments found on commandline" );
Signature · 1 line
1.8.3.2