Skip to contentSkip to conversation

xtables: arp: Parse properly target's options

PATCH Applied Tomasz Bursztyka 2 participants 2 messages Oct 3, 2013 netfilter

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtables: arp: Parse properly target's options

Without this, target never gets its options parsed, so it's a bug.

---
 iptables/xtables-arp.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
iptables/xtables-arp.c +5 -5
index 8072d90..147c371 100644
@@ -1317,16 +1317,16 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table)
 			exit_tryhelp(2);
 
 		default:
+			if (target) {
+				xtables_option_tfcall(target);
+				xtables_option_tpcall(c, argv,
+						      invert, target, &fw);
+			}
 			break;
 		}
 		invert = FALSE;
 	}
 
-	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
maintainer Applied
#1 lore raw
Quoted 1 line · Tomasz Bursztyka

Without this, target never gets its options parsed, so it's a bug.

Applied, thanks.