]> git.ipfire.org Git - thirdparty/suricata.git/commit
host: improve compare logic
authorVictor Julien <victor@inliniac.net>
Sat, 13 Feb 2021 16:10:15 +0000 (17:10 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Feb 2021 21:03:55 +0000 (22:03 +0100)
commit0cb70651aadca621b96c3f658cf0e03266f2e37a
tree7bc1b749f379d36c010ea0aa6d1c10fe26aeb81d
parentefe7a65eadf682858b522d173119322dfd29a4c0
host: improve compare logic

The old compare macro would compare all bytes of an address, even
when for IPv4 addresses the additional bytes were not in use. This
made the logic vulnerable to mistakes like in issue #4280.

(cherry picked from commit 6bfc5afa2301cc416e2fced23ec1accdfdea0daf)
src/host.c