From 55f8672a0469d87445591b93ad955e492c586943 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 4 Feb 2014 18:18:46 +0100 Subject: [PATCH] profiling: end profiling tunnel packets inside lock End profiling inside the lock for a tunnel packet as otherwise another thread may already free the packet while the profiling code runs. SEGV's observed and now gone. --- src/tmqh-packetpool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tmqh-packetpool.c b/src/tmqh-packetpool.c index 1053d6be38..531af50c33 100644 --- a/src/tmqh-packetpool.c +++ b/src/tmqh-packetpool.c @@ -213,9 +213,8 @@ void TmqhOutputPacketpool(ThreadVars *t, Packet *p) * when we handle them */ SET_TUNNEL_PKT_VERDICTED(p); - SCMutexUnlock(m); - PACKET_PROFILING_END(p); + SCMutexUnlock(m); SCReturn; } } else { -- 2.47.3