From: Andrii Serbeniuk -X (aserbeni - SOFTSERVE INC at Cisco) Date: Fri, 13 Oct 2023 14:15:27 +0000 (+0000) Subject: Pull request #4051: detection: always clear rule profiling stats for all nodes X-Git-Tag: 3.1.73.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2c3b0d678961677a3cc59ca600988064739f6d;p=thirdparty%2Fsnort3.git Pull request #4051: detection: always clear rule profiling stats for all nodes Merge in SNORT/snort3 from ~ASERBENI/snort3:ruleprof_stats to master Squashed commit of the following: commit 6a7f93962b14b5675e36373f65fa1869e30e9577 Author: Andrii Serbeniuk Date: Thu Oct 12 12:29:58 2023 +0300 detection: fix cleaning of rule profiling stats when profiling starts --- diff --git a/src/detection/detection_options.cc b/src/detection/detection_options.cc index a2a9a3f95..eaa805319 100644 --- a/src/detection/detection_options.cc +++ b/src/detection/detection_options.cc @@ -827,8 +827,7 @@ void detection_option_tree_reset_otn_stats(std::vector& nodes, unsign auto* node = (detection_option_tree_node_t*)hnode->data; assert(node); - if ( node->state[thread_id].checks ) - detection_option_node_reset_otn_stats(node, thread_id); + detection_option_node_reset_otn_stats(node, thread_id); } }