detect: case-insensitive comparison for requires

Ticket: 6656
pull/10115/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 673d13d445
commit d3218385e9

@ -902,7 +902,7 @@ static int SigParseOptions(DetectEngineCtx *de_ctx, Signature *s, char *optstr,
/* Check for options that are only to be processed during the
* first "requires" pass. */
bool requires_only = strcmp(optname, "requires") == 0 || strcmp(optname, "sid") == 0;
bool requires_only = strcasecmp(optname, "requires") == 0 || strcasecmp(optname, "sid") == 0;
if ((requires && !requires_only) || (!requires && requires_only)) {
goto finish;
}

Loading…
Cancel
Save