]> git.ipfire.org Git - thirdparty/suricata.git/commit
radix: fix ipv6 address parsing warning 8268/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 09:56:10 +0000 (10:56 +0100)
commit44a2e59cb2dd0596404d19a3b41b8ee5977fafcf
tree052a2d67e6b34f2cedcc0dfeb38359e71381f795
parentfb6f1b184c607d6c610272580554cc246ea093cc
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.
(cherry picked from commit 991f9fde3292d45eefcfe9e01ef8480e5864977b)
src/util-radix-tree.c