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.
pull/820/head
Victor Julien 12 years ago
parent 4e5572b8dc
commit 55f8672a04

@ -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 {

Loading…
Cancel
Save