From: Victor Julien Date: Wed, 29 Jan 2020 09:22:57 +0000 (+0100) Subject: detect: fix global declaration of sigmatch_table X-Git-Tag: suricata-6.0.0-beta1~765 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b89059bda7814eccf1373c5dc8d8aaa13c46e590;p=thirdparty%2Fsuricata.git detect: fix global declaration of sigmatch_table --- diff --git a/src/detect-parse.c b/src/detect-parse.c index f73ba76cec..d5afe73e19 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -69,6 +69,9 @@ #include "detect-engine-iponly.h" #include "app-layer-detect-proto.h" +/* Table with all SigMatch registrations */ +SigTableElmt sigmatch_table[DETECT_TBLSIZE]; + extern int sc_set_caps; static void SigMatchTransferSigMatchAcrossLists(SigMatch *sm, diff --git a/src/detect.h b/src/detect.h index 81e855adde..39de33e2b2 100644 --- a/src/detect.h +++ b/src/detect.h @@ -1445,7 +1445,7 @@ typedef struct DetectEngineMasterCtx_ { } DetectEngineMasterCtx; /* Table with all SigMatch registrations */ -SigTableElmt sigmatch_table[DETECT_TBLSIZE]; +extern SigTableElmt sigmatch_table[DETECT_TBLSIZE]; /** Remember to add the options in SignatureIsIPOnly() at detect.c otherwise it wont be part of a signature group */