From: Victor Julien Date: Mon, 2 Apr 2012 17:25:13 +0000 (+0200) Subject: Fix error in per packet detection engine profiling. X-Git-Tag: suricata-1.3beta1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e874a5a3deef4b37793d0cf2c90c803acf95a697;p=thirdparty%2Fsuricata.git Fix error in per packet detection engine profiling. --- diff --git a/src/util-profiling.h b/src/util-profiling.h index 51f6f21996..1bc64ace5e 100644 --- a/src/util-profiling.h +++ b/src/util-profiling.h @@ -185,7 +185,7 @@ void SCProfilingAddPacket(Packet *); #define PACKET_PROFILING_DETECT_END(p, id) \ if (profiling_packets_enabled) { \ - if ((id) < TMM_SIZE) { \ + if ((id) < PROF_DETECT_SIZE) { \ (p)->profile.detect[(id)].ticks_end = UtilCpuGetTicks();\ if ((p)->profile.detect[(id)].ticks_start != 0 && \ (p)->profile.detect[(id)].ticks_start < (p)->profile.detect[(id)].ticks_end) { \