Skip to content

Commit

Permalink
detect: case-insensitive comparison for requires
Browse files Browse the repository at this point in the history
Ticket: 6656
  • Loading branch information
catenacyber authored and victorjulien committed Jan 4, 2024
1 parent 673d13d commit d321838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detect-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d321838

Please sign in to comment.