From: Sascha Steinbiss Date: Thu, 20 Feb 2020 09:46:55 +0000 (+0100) Subject: snmp: do not set SIGMATCH_NOOPT X-Git-Tag: suricata-5.0.3~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b5436fd1db970339a41bc4d8aec162c4ddec0a;p=thirdparty%2Fsuricata.git snmp: do not set SIGMATCH_NOOPT (cherry picked from commit f02a18e55747b40950a79095b930095407cc97b8) --- diff --git a/src/detect-snmp-pdu_type.c b/src/detect-snmp-pdu_type.c index d2d4f49372..2286e86b58 100644 --- a/src/detect-snmp-pdu_type.c +++ b/src/detect-snmp-pdu_type.c @@ -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); diff --git a/src/detect-snmp-version.c b/src/detect-snmp-version.c index 7ca32d341f..26a1ae4e1e 100644 --- a/src/detect-snmp-version.c +++ b/src/detect-snmp-version.c @@ -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);