]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ebtables-translate: Ignore '-j CONTINUE'
authorPhil Sutter <phil@nwl.cc>
Thu, 26 Jan 2023 02:07:33 +0000 (03:07 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 31 Jan 2023 15:29:26 +0000 (16:29 +0100)
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>
iptables/xtables-eb-translate.c

index 49ae6f64a9741d8d1ed90b02b35fb6a35c91d11a..99347c0c3ee465666878171f97eb833f8df09df4 100644 (file)
@@ -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);