]> 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)
committerVictor Julien <victor@inliniac.net>
Mon, 24 Feb 2020 10:05:46 +0000 (11:05 +0100)
src/detect-snmp-pdu_type.c
src/detect-snmp-version.c

index 9a7068d26fe17b74c25c5e7228b861ac5a7fc421..83028cec7787eca4c1847338ac569b924aacf708 100644 (file)
@@ -72,7 +72,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 f1240a96ea80f6f936ddb5d3bf3fbdd2ac8105af..598ced72b061d257fd5178ea7b53633c37ea18de 100644 (file)
@@ -84,7 +84,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);