From 876f0c95c7483a8ba84437ac11297290af3e1144 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 9 Aug 2008 12:52:30 +0200 Subject: [PATCH] Signature rule keywords are case insensitive. Support that. --- src/detect-parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-parse.c b/src/detect-parse.c index 82056fad32..071b6a8b1a 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -47,6 +47,7 @@ void SigMatchFree(SigMatch *sm) { free(sm); } +/* Get the detection module by name */ SigTableElmt *SigTableGet(char *name) { SigTableElmt *st = NULL; int i = 0; @@ -55,7 +56,7 @@ SigTableElmt *SigTableGet(char *name) { st = &sigmatch_table[i]; if (st->name != NULL) { - if (strcmp(name,st->name) == 0) + if (strcasecmp(name,st->name) == 0) return st; } }