]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/pcre: Correct spelling typos
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 17 Mar 2020 14:34:39 +0000 (10:34 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 19 Mar 2020 16:47:45 +0000 (17:47 +0100)
src/detect-pcre.c

index 14b46a7d33bcd10433a12e254ad83bc26b86077e..9c2dc422d397d3864ea903b2f1878c37d59be6df 100644 (file)
@@ -936,7 +936,7 @@ static int DetectPcreSetup (DetectEngineCtx *de_ctx, Signature *s, const char *r
             DETECT_CONTENT, DETECT_PCRE, -1);
     if (s->init_data->list == DETECT_SM_LIST_NOTSET && prev_pm == NULL) {
         SCLogError(SC_ERR_INVALID_SIGNATURE, "pcre with /R (relative) needs "
-                "preceeding match in the same buffer");
+                "preceding match in the same buffer");
         goto error_nofree;
     /* null is allowed when we use a sticky buffer */
     } else if (prev_pm == NULL)
@@ -1461,7 +1461,7 @@ static int DetectPcreParseTest19(void)
     de_ctx->flags |= DE_QUIET;
     de_ctx->sig_list = SigInit(de_ctx,
                                "alert tcp any any -> any any "
-                               "(msg:\"Testing pcre relativie http_client_body\"; "
+                               "(msg:\"Testing pcre relative http_client_body\"; "
                                "content:\"test\"; "
                                "http_client_body; pcre:\"/abc/RP\"; sid:1;)");
     FAIL_IF_NULL(de_ctx->sig_list);