path: root/iptables/xtables.c
diff options
authorPhil Sutter <>2018-08-02 17:05:14 +0200
committerFlorian Westphal <>2018-08-04 14:16:17 +0200
commit14ad525cf2ad35928c12e7ec6710fb556f6d1ef7 (patch)
tree5a06bb1e733182d9196869c07e4ca95a769008e6 /iptables/xtables.c
parentf7bbdb0091f2c2baf43bb1c14715bc850181a021 (diff)
xtables: Fix program name in xtables_error()
The error function is shared among different programs, so it should take information from xt_params pointer instead of xtables_globals object. Signed-off-by: Phil Sutter <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'iptables/xtables.c')
1 files changed, 3 insertions, 3 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c
index 2a4e0ec6..ca6119b3 100644
--- a/iptables/xtables.c
+++ b/iptables/xtables.c
@@ -156,9 +156,9 @@ static const int inverse_for_options[NUMBER_OF_OPT] =
/* -f */ IPT_INV_FRAG,
-#define opts xtables_globals.opts
-#define prog_name xtables_globals.program_name
-#define prog_vers xtables_globals.program_version
+#define opts xt_params->opts
+#define prog_name xt_params->program_name
+#define prog_vers xt_params->program_version
static void __attribute__((noreturn))
exit_tryhelp(int status)