From 27f338206670d6d6a699c310033a33ddc19207a4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 18 Mar 2010 22:07:26 +0100 Subject: [PATCH] Fix rules with thresholding set not being able to be ip-only. --- src/detect-threshold.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detect-threshold.c b/src/detect-threshold.c index d0100cb642..6442758a87 100644 --- a/src/detect-threshold.c +++ b/src/detect-threshold.c @@ -40,6 +40,8 @@ void DetectThresholdRegister (void) { sigmatch_table[DETECT_THRESHOLD].Setup = DetectThresholdSetup; sigmatch_table[DETECT_THRESHOLD].Free = DetectThresholdFree; sigmatch_table[DETECT_THRESHOLD].RegisterTests = ThresholdRegisterTests; + /* this is compatible to ip-only signatures */ + sigmatch_table[DETECT_THRESHOLD].flags |= SIGMATCH_IPONLY_COMPAT; const char *eb; int opts = 0;