]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
snmp: do not set SIGMATCH_NOOPT
authorSascha Steinbiss <satta@debian.org>
Thu, 20 Feb 2020 09:46:55 +0000 (10:46 +0100)
committerJeff Lucovsky <jeff@lucovsky.org>
Wed, 8 Apr 2020 12:42:54 +0000 (08:42 -0400)
(cherry picked from commit f02a18e55747b40950a79095b930095407cc97b8)

src/detect-snmp-pdu_type.c
src/detect-snmp-version.c

index d2d4f49372290367ab57432e1a50a4eabb1793e6..2286e86b58cd8eaf1cda9872f42f81e4916a2b0b 100644 (file)
@@ -74,7 +74,6 @@ void DetectSNMPPduTypeRegister(void)
 #ifdef UNITTESTS
     sigmatch_table[DETECT_AL_SNMP_PDU_TYPE].RegisterTests = DetectSNMPPduTypeRegisterTests;
 #endif
-    sigmatch_table[DETECT_AL_SNMP_PDU_TYPE].flags |= SIGMATCH_NOOPT;
 
     DetectSetupParseRegexes(PARSE_REGEX, &parse_regex, &parse_regex_study);
 
index 7ca32d341f0af2a88647ec4d10144ce52301b224..26a1ae4e1ed4b81fe87cf825dbd9bcfe4e5e531c 100644 (file)
@@ -86,7 +86,6 @@ void DetectSNMPVersionRegister (void)
 #ifdef UNITTESTS
     sigmatch_table[DETECT_AL_SNMP_VERSION].RegisterTests = DetectSNMPVersionRegisterTests;
 #endif
-    sigmatch_table[DETECT_AL_SNMP_VERSION].flags |= SIGMATCH_NOOPT;
 
     DetectSetupParseRegexes(PARSE_REGEX, &parse_regex, &parse_regex_study);