Merge in SNORT/snort3 from ~OSHUMEIK/snort3:sse_last_recall_fix to master
Squashed commit of the following:
commit
620b83fde9df276fe25e9b8968efb01a684ed566
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Mon Apr 29 13:37:04 2024 +0300
detection: fix postponed rule evaluation with recall presence
Proceed to the next rule continuation only after the current one is done.
while (i != &states)
{
auto st = i;
- i = i->get_next();
+ bool r = (**st).eval(p);
+ i = st->get_next();
- if ((**st).eval(p))
+ if (r)
{
assert(0 < states_cnt);
assert(st != &states);