From cef609bb73c19e53ebd45247ffaa7db91a24b0d7 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 17 Dec 2014 15:50:29 +0100 Subject: [PATCH] threading: lock TmThreadKillThreadsFamily --- src/tm-threads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tm-threads.c b/src/tm-threads.c index 64964c308f..0246ec681b 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -1697,6 +1697,7 @@ void TmThreadKillThreadsFamily(int family) if ((family < 0) || (family >= TVT_MAX)) return; + SCMutexLock(&tv_root_lock); tv = tv_root[family]; while (tv) { @@ -1704,6 +1705,7 @@ void TmThreadKillThreadsFamily(int family) tv = tv->next; } + SCMutexUnlock(&tv_root_lock); } void TmThreadKillThreads(void) -- 2.47.3