From: Gianni Tedesco Date: Sun, 13 Dec 2020 14:50:23 +0000 (+0900) Subject: detect-fast-pattern: Mark as OPTIONAL_OPT, instead of NOOPT X-Git-Tag: suricata-7.0.0-beta1~1920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cebe15c23b48e92df5181b3f0b0e6ac7195d717b;p=thirdparty%2Fsuricata.git detect-fast-pattern: Mark as OPTIONAL_OPT, instead of NOOPT Also update the erroneous comment about it. --- diff --git a/src/detect-fast-pattern.c b/src/detect-fast-pattern.c index 0a3d0d1fc1..408aafe4b6 100644 --- a/src/detect-fast-pattern.c +++ b/src/detect-fast-pattern.c @@ -175,7 +175,7 @@ void DetectFastPatternRegister(void) #ifdef UNITTESTS sigmatch_table[DETECT_FAST_PATTERN].RegisterTests = DetectFastPatternRegisterTests; #endif - sigmatch_table[DETECT_FAST_PATTERN].flags |= SIGMATCH_NOOPT; + sigmatch_table[DETECT_FAST_PATTERN].flags |= SIGMATCH_OPTIONAL_OPT; DetectSetupParseRegexes(PARSE_REGEX, &parse_regex); } @@ -188,7 +188,7 @@ void DetectFastPatternRegister(void) * * \param de_ctx Pointer to the Detection Engine Context. * \param s Pointer to the Signature to which the current keyword belongs. - * \param null_str Should hold an empty string always. + * \param arg May hold an argument * * \retval 0 On success. * \retval -1 On failure.