From: Victor Julien Date: Wed, 29 Jan 2020 12:30:35 +0000 (+0100) Subject: threading: fix queue handlers globals use X-Git-Tag: suricata-6.0.0-beta1~756 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3c6c609ca4e466613d83f37c7fd65a56213fca;p=thirdparty%2Fsuricata.git threading: fix queue handlers globals use --- diff --git a/src/tm-queuehandlers.c b/src/tm-queuehandlers.c index dff60c3104..4850679ceb 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 363a725676..eb0081bba6 100644 --- a/src/tm-queuehandlers.h +++ b/src/tm-queuehandlers.h @@ -43,7 +43,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);