From 37669bfdd264f398bbcd1707c296111c65b99f0f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 15 Oct 2013 11:18:10 +0200 Subject: [PATCH] threshold: register threshold host storage. Related to bug #991 --- src/detect-engine-threshold.h | 2 ++ src/suricata.c | 2 ++ 2 files changed, 4 insertions(+) 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,