]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/port: fix grouping of ports w gaps 10697/head
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 21 Mar 2024 08:45:39 +0000 (14:15 +0530)
committerVictor Julien <victor@inliniac.net>
Fri, 22 Mar 2024 06:52:33 +0000 (07:52 +0100)
commit7d937db5cb87e0ab2ed3c435db109c11ed95e676
tree4d776bd2c2375670f75f4a67293fa84f9c8d0ca4
parent0be3ba802e1433632e48a7160cc6ae9fbe4c239e
detect/port: fix grouping of ports w gaps

If a single port happens before a range port, the port groups created
were incorrect. Fix it to use smarter range check.

For example, given,
80:80 - SGH1
100:120 - SGH2

Range created should be
80:80 - SGH1
100:120 - SGH2

Bug 6881
src/detect-engine-build.c