profiling/rules: add BUG_ON to profile tracking

pull/8879/head
Victor Julien 2 years ago
parent 2423b2a483
commit ecc7ec3ea7

@ -423,6 +423,7 @@ void SCProfilingRuleThreatAggregate(DetectEngineThreadCtx *det_ctx);
SCProfilingRuleUpdateCounter( \
ctx, r->profiling_id, profile_rule_end_ - profile_rule_start_, m); \
profiling_rules_entered--; \
BUG_ON(profiling_rules_entered < 0); \
}
#else /* PROFILE_RULES */

Loading…
Cancel
Save