summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-01-26 03:07:33 +0100
committerPhil Sutter <phil@nwl.cc>2023-01-31 16:29:26 +0100
commit3f7da77726d4089237d9c0ed1794892ec001879c (patch)
tree16353d3e9623a247f2866be437753a31641289e1
parentab9af3ecce355725071f207d5e9c3bc108e58158 (diff)
downloadiptables-3f7da77726d4089237d9c0ed1794892ec001879c.tar.gz
ebtables-translate: Ignore '-j CONTINUE'
It is default behaviour. Does not hurt here, but reducing diff to xtables-eb.c can't hurt. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--iptables/xtables-eb-translate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/xtables-eb-translate.c b/iptables/xtables-eb-translate.c
index 49ae6f64..99347c0c 100644
--- a/iptables/xtables-eb-translate.c
+++ b/iptables/xtables-eb-translate.c
@@ -355,7 +355,9 @@ print_zero:
break;
} else if (c == 'j') {
ebt_check_option2(&flags, OPT_JUMP);
- command_jump(&cs, optarg);
+ if (strcmp(optarg, "CONTINUE") != 0) {
+ command_jump(&cs, optarg);
+ }
break;
} else if (c == 's') {
ebt_check_option2(&flags, OPT_SOURCE);