Merge in SNORT/snort3 from ~OSHUMEIK/snort3:flowbit_assert to master
Squashed commit of the following:
commit
f6ab7141e83a53ed630b50f9331d841ae60ce193
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Fri Sep 1 15:07:31 2023 +0300
detection: fix assert expression
Flowbit setter can be evaluated against a packet without flow.
IPS rule still matches.
{
rval = node->evaluate(node->option_data, cursor, eval_data.p);
assert((flowbits_setter(node->option_data) and rval == (int)IpsOption::MATCH)
- or !flowbits_setter(node->option_data));
+ or !flowbits_setter(node->option_data) or !eval_data.p->flow);
}
break;