Merge in SNORT/snort3 from ~ADMAMOLE/snort3:sse_policy_change to master
Squashed commit of the following:
commit
32fd659e58805f4a5c0f76954596e520e6c0a825
Author: Adrian Mamolea <admamole@cisco.com>
Date: Thu Mar 21 17:01:19 2024 -0400
detection: handle policy changes in continuation
** OptTreeNode * - the otn to add.
**
** FORMAL OUTPUTS
+** int - 2 rule no longer enabled in current policy.
** int - 1 max_events variable hit.
** int - 0 successful.
**
int fpAddMatch(OtnxMatchData* omd, const OptTreeNode* otn)
{
RuleTreeNode* rtn = getRtnFromOtn(otn);
- assert(rtn);
+ if ( !rtn )
+ return 2;
unsigned evalIndex = rtn->listhead->ruleListNode->evalIndex;