Skip to content

Commit cebe15c

Browse files
giannitedescovictorjulien
authored andcommitted
detect-fast-pattern: Mark as OPTIONAL_OPT, instead of NOOPT
Also update the erroneous comment about it.
1 parent f78f444 commit cebe15c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detect-fast-pattern.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void DetectFastPatternRegister(void)
175175
#ifdef UNITTESTS
176176
sigmatch_table[DETECT_FAST_PATTERN].RegisterTests = DetectFastPatternRegisterTests;
177177
#endif
178-
sigmatch_table[DETECT_FAST_PATTERN].flags |= SIGMATCH_NOOPT;
178+
sigmatch_table[DETECT_FAST_PATTERN].flags |= SIGMATCH_OPTIONAL_OPT;
179179

180180
DetectSetupParseRegexes(PARSE_REGEX, &parse_regex);
181181
}
@@ -188,7 +188,7 @@ void DetectFastPatternRegister(void)
188188
*
189189
* \param de_ctx Pointer to the Detection Engine Context.
190190
* \param s Pointer to the Signature to which the current keyword belongs.
191-
* \param null_str Should hold an empty string always.
191+
* \param arg May hold an argument
192192
*
193193
* \retval 0 On success.
194194
* \retval -1 On failure.

0 commit comments

Comments
 (0)