]> git.ipfire.org Git - thirdparty/suricata.git/commit
radix: fix ipv6 address parsing warning 8267/head
authorVictor Julien <vjulien@oisf.net>
Thu, 8 Dec 2022 19:14:43 +0000 (20:14 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 9 Dec 2022 05:05:39 +0000 (06:05 +0100)
commit991f9fde3292d45eefcfe9e01ef8480e5864977b
treeab63c1fc3f4a132f5c7b8d0677f52c9f07c4f2c4
parentb289030696f26c99b3c2556b4b9a4fcea1b16cd5
radix: fix ipv6 address parsing warning

The check meant to see if the ip address part of the ip/cidr combo
was more specific than needed wasn't fully implemented, leading to
warnings being issued on completely valid and correct input.

This patch implements the same logic as in IPv4. If the ip address
as specified is different from the ip after the mask has been applied,
a warning is displayed.

Bug: #5747.
src/util-radix-tree.c