]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix setting of flag for rule reload 8799/head
authorJason Ish <jason.ish@oisf.net>
Mon, 1 May 2023 16:50:40 +0000 (10:50 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 2 May 2023 20:15:19 +0000 (14:15 -0600)
commitfe45258fbd0b3d720b7f3ad4f0e9ae380ec00460
tree7ddfb95dc0a573b8f236704fb4a9be60e4e77a6c
parent75e57dde7c147423a299a4d8e63a8d48b7bd22cd
detect: fix setting of flag for rule reload

As part of 6d8b50b748844e9de6010cde5a6b139148c0e937, the settings of
THV_CAPTURE_INJECT_PKT ended up in a location unreachable by capture
methods that did not have PktAcqBreakLoop.

Instead, always call TmThreadsCaptureBreakLoop which handles the logic
for how the read loop should be broken.

This fixes the case where read threads won't "break" for rule reloads
until packets are seen.

Ticket: #6021
(cherry picked from commit 1c6644ef4eda43e7b14447b18409e8b35f59344d)
src/detect-engine.c
src/tm-threads.h