From: Victor Julien Date: Wed, 29 Jan 2020 12:30:35 +0000 (+0100) Subject: threading: fix queue handlers globals use X-Git-Tag: suricata-5.0.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ad0d551f46dcb17788e734594d13e6e42d2d00;p=thirdparty%2Fsuricata.git threading: fix queue handlers globals use --- diff --git a/src/tm-queuehandlers.c b/src/tm-queuehandlers.c index 862fc7d396..6b2a6b98a6 100644 --- a/src/tm-queuehandlers.c +++ b/src/tm-queuehandlers.c @@ -34,6 +34,8 @@ #include "tmqh-packetpool.h" #include "tmqh-flow.h" +Tmqh tmqh_table[TMQH_SIZE]; + void TmqhSetup (void) { memset(&tmqh_table, 0, sizeof(tmqh_table)); diff --git a/src/tm-queuehandlers.h b/src/tm-queuehandlers.h index e4dc329db3..85a4520be9 100644 --- a/src/tm-queuehandlers.h +++ b/src/tm-queuehandlers.h @@ -42,7 +42,7 @@ typedef struct Tmqh_ { void (*RegisterTests)(void); } Tmqh; -Tmqh tmqh_table[TMQH_SIZE]; +extern Tmqh tmqh_table[TMQH_SIZE]; void TmqhSetup (void); void TmqhCleanup(void);