]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: fix global declaration of sigmatch_table
authorVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2020 09:22:57 +0000 (10:22 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 11 Feb 2020 19:38:50 +0000 (20:38 +0100)
src/detect-parse.c
src/detect.h

index f73ba76cec8894cc7f71d94cdc8aa3d075ad8961..d5afe73e191b34ddfb26c65d5fd91572661d3c17 100644 (file)
@@ -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,
index 81e855adde44485b58a3c7cda830d374d0babce2..39de33e2b29d56b6df0e682345e4a005d0823a34 100644 (file)
@@ -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 */