]> git.ipfire.org Git - thirdparty/suricata.git/commit
host: improve compare logic 5855/head
authorVictor Julien <victor@inliniac.net>
Sat, 13 Feb 2021 16:10:15 +0000 (17:10 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 13 Feb 2021 16:10:19 +0000 (17:10 +0100)
commit6bfc5afa2301cc416e2fced23ec1accdfdea0daf
tree433552d93dc5de1d9b5b898904f2dedb17477759
parent7b03e6837e5a7366f546e7a2b681d2921ded1ab1
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.
src/host.c