]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/port: handle single port that is range too
authorShivani Bhardwaj <shivani@oisf.net>
Sat, 9 Mar 2024 04:21:57 +0000 (09:51 +0530)
committerVictor Julien <victor@inliniac.net>
Fri, 24 May 2024 17:11:03 +0000 (19:11 +0200)
commite9d9db6c8375267954205a1ad7295e0b0e9d6463
treee1a442352abc3bc24a8d17896858dea3d0d303e7
parentc284b4c4aec5904b1ab9e757184ba2dad1aec473
detect/port: handle single port that is range too

If a port point is single but later on also a part of a range, it ends
up only creating the port groups for single points and not the range.
Fix it by adding the port next to current single one to unique points
and marking it a range port.

Bug 6843

(cherry picked from commit 632ca75dd3f49bee865f047cc5336870f3a431d2)
src/detect-engine-build.c