diff options
-rw-r--r-- | iptables/xtables-arp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c index 6a095bfd..d0cd6887 100644 --- a/iptables/xtables-arp.c +++ b/iptables/xtables-arp.c @@ -1191,7 +1191,10 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table, if (invert) xtables_error(PARAMETER_PROBLEM, "unexpected ! flag before --table"); - *table = argv[optind-1]; + /* ignore this option. + * arptables-legacy parses it, but libarptc doesn't use it. + * arptables only has a 'filter' table anyway. + */ break; case 'V': |