summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-02-11 13:58:03 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-02-11 14:00:09 +0100
commitd007e1a59e4beaddab430992302d43b122ffc801 (patch)
tree2276b542655892b2843024bec54653eaa09ee636 /iptables/nft-shared.c
parent8877968858a8dd6b7ae096988d57a7511c81733d (diff)
nft-compat: fix IP6T_F_GOTO flag handling
IPT_F_GOTO and IP6T_F_GOTO don't overlap, so this need special handling to avoid misinterpretations. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.c')
-rw-r--r--iptables/nft-shared.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index dce8a34a..ada71e6b 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -648,10 +648,7 @@ void save_matches_and_target(struct xtables_rule_match *m,
if (target->save != NULL)
target->save(fw, target->t);
- } else if (strlen(jumpto) > 0)
- printf("-%c %s", flags & IPT_F_GOTO ? 'g' : 'j', jumpto);
-
- printf("\n");
+ }
}
void print_matches_and_target(struct iptables_command_state *cs,