mirror of https://github.com/OISF/suricata
Fix potential deadlock in output
Coverity: ** CID 1296115: Program hangs (ORDER_REVERSAL) /src/tm-threads.c: 1670 in TmThreadClearThreadsFamily() The problem is with the by default unused '%m' output parameter. To get the thread vars it takes the tv_root_lock. This may already be locked by the calling thread. Also, it could lead to a case of wrong lock order between the tv_root_lock and the thread_store_lock. Very unlikely to happen though. As the %m param isn't really used (by default) this patch just disables it.pull/1454/head
parent
94321b8a2f
commit
b9aaf5a9ab
Loading…
Reference in New Issue