]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: syntax regex logic update
authorTravis Green <travis@travisgreen.net>
Fri, 9 Aug 2019 21:56:52 +0000 (15:56 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Sep 2019 06:23:06 +0000 (08:23 +0200)
Updated regex logic to include more spaces. Fixed spelling.

src/detect-dce-iface.c

index 07062f7b12a960d3528742d3b8fd953576597476..242657f534874e329611c7391f3bd52cf1209a97 100644 (file)
@@ -50,7 +50,7 @@
 #include "rust.h"
 #include "rust-smb-detect-gen.h"
 
-#define PARSE_REGEX "^\\s*([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12})(?:\\s*,(<|>|=|!)([0-9]{1,5}))?(?:\\s*,(any_frag))?\\s*$"
+#define PARSE_REGEX "^\\s*([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12})(?:\\s*,\\s*(<|>|=|!)([0-9]{1,5}))?(?:\\s*,\\s*(any_frag))?\\s*$"
 
 static pcre *parse_regex = NULL;
 static pcre_extra *parse_regex_study = NULL;
@@ -379,7 +379,7 @@ static int DetectDceIfaceSetup(DetectEngineCtx *de_ctx, Signature *s, const char
 {
     DetectDceIfaceData *did = DetectDceIfaceArgParse(arg);
     if (did == NULL) {
-        SCLogError(SC_ERR_INVALID_SIGNATURE, "Error parsing dec_iface option in "
+        SCLogError(SC_ERR_INVALID_SIGNATURE, "Error parsing dce_iface option in "
                    "signature");
         return -1;
     }