]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/port: handle range and upper boundary ports
authorShivani Bhardwaj <shivani@oisf.net>
Mon, 25 Mar 2024 13:38:31 +0000 (19:08 +0530)
committerVictor Julien <victor@inliniac.net>
Mon, 25 Mar 2024 16:36:31 +0000 (17:36 +0100)
commit4227e52c4b3a5118f42675e0fae28178c026d7fd
tree8514d6bedab29e0f0220db66af5d6412191d6e76
parent02b019d0719b291862877b3a2edb95f1e1b02956
detect/port: handle range and upper boundary ports

So far, if a port was found to be single which was earlier a part of the
range, port + 1 was added to the list to honor the range that it was a
part of. But, this is incorrect in case the port is 65535 or if the port
was found to be of range when it was earlier a single port.

Bug 6896
src/detect-engine-build.c