Skip to content

Commit c26f890

Browse files
alinnastacynezz
authored andcommitted
firewall3: fix typo that affects ICMPv6 rules with numeric icmp_type
Problem can be reproduced with a rule like this: option src 'wan' option family 'ipv6' option proto 'icmp' option icmp_type '128' option target 'DROP' The resulted rule will set --icmpv6-type to 128/255. Signed-off-by: Alin Nastac <[email protected]>
1 parent 487bd0d commit c26f890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ fw3_parse_icmptype(void *ptr, const char *val, bool is_list)
568568
}
569569

570570
icmp.type6 = icmp.type;
571-
icmp.code6_min = icmp.code_max;
571+
icmp.code6_min = icmp.code_min;
572572
icmp.code6_max = icmp.code_max;
573573

574574
v4 = true;

0 commit comments

Comments
 (0)