mirror of https://github.com/OISF/suricata
detect/engine: fix whitelisted port range check
So far, the condition for checking if the whitelisted port was in the port range of "a" said a->port >= w->port && a->port2 <= w->port But, if a->port <= a->port2, this condition could only be true when a->port == w->port == a->port2. However, the motivation for this fn was to be able to find if the whitelisted port for a carrier proto already was in the range of the given protocol and calculate a score for the port accordingly. Fix the range check such that a->port <= w->port <= a->port2.pull/9964/head
parent
2b73a17bb0
commit
4a00ae6076
Loading…
Reference in New Issue