From d3218385e942a4a01f3938f0cd7050f5dc7c9a6f Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 4 Jan 2024 11:42:55 +0100 Subject: [PATCH] detect: case-insensitive comparison for requires Ticket: 6656 --- src/detect-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-parse.c b/src/detect-parse.c index 45f188df11..bf46840458 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -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; } -- 2.47.2