]> git.ipfire.org Git - thirdparty/suricata.git/commit
host: improve compare logic 5860/head
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 10:09:06 +0000 (11:09 +0100)
commit83b06c1558ad0149c57384ea6272d5f6f5627875
tree3c7e888b5a90668f2fe2fc20a5babeb55c9644ed
parent75d5041756335ba3eeb3d97bc3f436dd97695d83
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