]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Explicitly pass target to command_jump()
authorPhil Sutter <phil@nwl.cc>
Tue, 5 Feb 2019 16:01:42 +0000 (17:01 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 7 Feb 2019 14:51:58 +0000 (15:51 +0100)
commit932d5c3fb94acc499c8a6264e354ab1e33316b72
tree2ac6641f91cc52ceb4b176055bfc205a6c2e3e21
parent35b22e82fa62e10950d8e0fa53a755d4abadf346
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>
iptables/ip6tables.c
iptables/iptables.c
iptables/xshared.c
iptables/xshared.h
iptables/xtables-arp.c
iptables/xtables-eb-translate.c
iptables/xtables-eb.c
iptables/xtables.c