diff --git a/src/detect-engine-threshold.h b/src/detect-engine-threshold.h index 141d510a6e..b874ecb2fa 100644 --- a/src/detect-engine-threshold.h +++ b/src/detect-engine-threshold.h @@ -28,6 +28,8 @@ #include "detect.h" #include "host.h" +void ThresholdInit(void); + int ThresholdHostStorageId(void); int ThresholdHostHasThreshold(Host *); diff --git a/src/suricata.c b/src/suricata.c index 3318a17b43..585a71e4c7 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -58,6 +58,7 @@ #include "detect-parse.h" #include "detect-fast-pattern.h" #include "detect-engine-tag.h" +#include "detect-engine-threshold.h" #include "detect-engine-address.h" #include "detect-engine-port.h" #include "detect-engine-mpm.h" @@ -1984,6 +1985,7 @@ int main(int argc, char **argv) SCProtoNameInit(); TagInitCtx(); + ThresholdInit(); if (DetectAddressTestConfVars() < 0) { SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,