From: Sascha Steinbiss Date: Thu, 20 Feb 2020 09:46:55 +0000 (+0100) Subject: snmp: do not set SIGMATCH_NOOPT X-Git-Tag: suricata-6.0.0-beta1~717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02a18e55747b40950a79095b930095407cc97b8;p=thirdparty%2Fsuricata.git snmp: do not set SIGMATCH_NOOPT --- diff --git a/src/detect-snmp-pdu_type.c b/src/detect-snmp-pdu_type.c index 9a7068d26f..83028cec77 100644 --- a/src/detect-snmp-pdu_type.c +++ b/src/detect-snmp-pdu_type.c @@ -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); diff --git a/src/detect-snmp-version.c b/src/detect-snmp-version.c index f1240a96ea..598ced72b0 100644 --- a/src/detect-snmp-version.c +++ b/src/detect-snmp-version.c @@ -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);