mirror of https://github.com/OISF/suricata
threads: don't crash in slow shutdown
If TmThreadDrainPacketThreads would take more than 60 seconds, the wait loop that follows it would reach 'timeout' condition immediately. This would lead to a null ptr deref of 'tv'. Fix by not counting the TmThreadDrainPacketThreads and also not doing the null ptr deref in any case.pull/3157/head
parent
62ac13523a
commit
38e6901c34
Loading…
Reference in New Issue