]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix setting of flag for rule reload
authorJason Ish <jason.ish@oisf.net>
Mon, 1 May 2023 16:50:40 +0000 (10:50 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 1 May 2023 19:56:03 +0000 (21:56 +0200)
commit1c6644ef4eda43e7b14447b18409e8b35f59344d
tree754266230290e74e3f344ecd1ee8d0c6bd771d5d
parentf961d3bb950394bb7c60f220155b75d084da1601
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
src/detect-engine.c
src/tm-threads.h