diff options
author | Phil Sutter <phil@nwl.cc> | 2019-02-05 17:01:42 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-02-07 15:51:58 +0100 |
commit | 932d5c3fb94acc499c8a6264e354ab1e33316b72 (patch) | |
tree | 2ac6641f91cc52ceb4b176055bfc205a6c2e3e21 /iptables/ip6tables.c | |
parent | 35b22e82fa62e10950d8e0fa53a755d4abadf346 (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/ip6tables.c')
-rw-r--r-- | iptables/ip6tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index fe089de4..050afa9a 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -1441,7 +1441,7 @@ int do_command6(int argc, char *argv[], char **table, case 'j': set_option(&cs.options, OPT_JUMP, &cs.fw6.ipv6.invflags, cs.invert); - command_jump(&cs); + command_jump(&cs, optarg); break; |