summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-eb-translate.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-02-05 17:01:42 +0100
committerFlorian Westphal <fw@strlen.de>2019-02-07 15:51:58 +0100
commit932d5c3fb94acc499c8a6264e354ab1e33316b72 (patch)
tree2ac6641f91cc52ceb4b176055bfc205a6c2e3e21 /iptables/xtables-eb-translate.c
parent35b22e82fa62e10950d8e0fa53a755d4abadf346 (diff)
xshared: Explicitly pass target to command_jump()
The use of global 'optarg' variable inside that function is a mess, but most importantly it limits its applicability to input parsers. Fix this by having it take the option argument as a parameter. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-eb-translate.c')
-rw-r--r--iptables/xtables-eb-translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-eb-translate.c b/iptables/xtables-eb-translate.c
index 0fe14d2d..96b2730f 100644
--- a/iptables/xtables-eb-translate.c
+++ b/iptables/xtables-eb-translate.c
@@ -390,7 +390,7 @@ print_zero:
break;
} else if (c == 'j') {
ebt_check_option2(&flags, OPT_JUMP);
- command_jump(&cs);
+ command_jump(&cs, optarg);
break;
} else if (c == 's') {
ebt_check_option2(&flags, OPT_SOURCE);