diff options
| author | Alin Nastac | 2019-09-10 14:15:13 +0000 |
|---|---|---|
| committer | Petr Štetiar | 2019-09-15 19:15:05 +0000 |
| commit | c26f8907d1d2921018240774b75cf9cfda352fa7 (patch) | |
| tree | a849b4aaf2abccd42f26ff54e3ae8b9e52a83312 | |
| parent | 487bd0d96c8fb9a53871134ebba7c0a66e286334 (diff) | |
| download | firewall3-c26f8907d1d2921018240774b75cf9cfda352fa7.tar.gz | |
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 <alin.nastac@gmail.com>
| -rw-r--r-- | options.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -568,7 +568,7 @@ fw3_parse_icmptype(void *ptr, const char *val, bool is_list) } icmp.type6 = icmp.type; - icmp.code6_min = icmp.code_max; + icmp.code6_min = icmp.code_min; icmp.code6_max = icmp.code_max; v4 = true; |