]> git.ipfire.org Git - thirdparty/suricata.git/commit
time: only consider packet threads
authorVictor Julien <vjulien@oisf.net>
Mon, 20 May 2024 20:09:06 +0000 (22:09 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 23 May 2024 15:27:38 +0000 (17:27 +0200)
commit151b52847060e42ba549b408c9cefef52f8a104a
treee46aec70d309238b8d419ff820697b095a2805f6
parentaa034a6648ee468b9f76bb6ea8d46a319fbefec0
time: only consider packet threads

In offline mode, a timestamp is kept per thread, and the lowest
timestamp of the active threads is used. This was also considering the
non-packet threads, which could lead to the used timestamp being further
behind that needed. This would happen at the start of the program, as
the non-packet threads were set up the same way as the packet threads.

This patch both no longer sets up the timestamp for non-packet threads
as well as not considering non-packet threads during timestamp
retrieval.

Fixes: 6f560144c1b9 ("time: improve offline time handling")
Bug: #7034.
(cherry picked from commit 54557997952028f4617ca37c583f4a5fd070236c)
src/tm-threads.c