]> git.ipfire.org Git - thirdparty/suricata.git/commit
thread modules: separate initialization from registration
authorJason Ish <jason.ish@oisf.net>
Tue, 27 Feb 2024 22:07:33 +0000 (16:07 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 2 Mar 2024 10:40:18 +0000 (11:40 +0100)
commit96e61b043c9b6757ca84ddb74543073b2ef3d7e6
tree852cac1b1bc05423e7c7e3eaf1eb31e3f8ccc7b5
parentc2ecae9b82e933781b48ea41a2c002e65e8e6a07
thread modules: separate initialization from registration

Move the zero'ing to the thread module array InitGlobal in an effort
to fix capture modules.

At some point device validation moved to a point in startup before
plugins are loaded meaning that capture plugins could not be
used. Moving plugin registration early enough caused some of their
registration to be wiped out as clearing the array was done after.

Bug: #6811
src/suricata.c