From b569670c33c47b315ee70f01f73fe5aa4c025140 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Fri, 31 Jan 2020 09:59:29 -0500 Subject: [PATCH] general: Correct typos --- src/detect-parse.c | 12 ++++++------ src/detect-transform-compress-whitespace.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/detect-parse.c b/src/detect-parse.c index d6b72f757c..fae001172e 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -84,7 +84,7 @@ static void SigMatchTransferSigMatchAcrossLists(SigMatch *sm, typedef struct SigDuplWrapper_ { /* the signature we want to wrap */ Signature *s; - /* the signature right before the above signatue in the det_ctx->sig_list */ + /* the signature right before the above signature in the det_ctx->sig_list */ Signature *s_prev; } SigDuplWrapper; @@ -1066,7 +1066,7 @@ static inline int SigParseToken(char **input, char *output, * Parses rule tokens that may be lists such as addresses and ports * handling the case when they may not be lists. * - * \param input ouble pointer to input buffer, will be advanced as input is + * \param input double pointer to input buffer, will be advanced as input is * parsed. * \param output buffer to copy token into. * \param output_size length of output buffer. @@ -1292,7 +1292,7 @@ Signature *SigAlloc (void) /** * \internal - * \brief Free Medadata list + * \brief Free Metadata list * * \param s Pointer to the signature */ @@ -1591,7 +1591,7 @@ static int SigMatchListLen(SigMatch *sm) } /** \brief convert SigMatch list to SigMatchData array - * \note ownership of sm->ctx is transfered to smd->ctx + * \note ownership of sm->ctx is transferred to smd->ctx */ SigMatchData* SigMatchList2DataArray(SigMatch *head) { @@ -2300,7 +2300,7 @@ end: * If the signature is bidirectional it should append two signatures * (with the addresses switched) into the list. Also handle duplicate * signatures. In case of duplicate sigs, use the ones that have the - * latest revision. We use the sid and the msg to identifiy duplicate + * latest revision. We use the sid and the msg to identify duplicate * sigs. If 2 sigs have the same sid and gid, they are duplicates. * * \param de_ctx Pointer to the Detection Engine Context. @@ -4071,7 +4071,7 @@ static int SigParseBidirWithSameSrcAndDest02(void) SigFree(de_ctx, s); - // Source is a subset of destinationn + // Source is a subset of destination s = SigInit(de_ctx, "alert tcp [1.2.3.4, ::1] [80, 81, 82] <> [1.2.3.4, ::1] [80, 81] (sid:1; rev:1;)"); FAIL_IF_NULL(s); diff --git a/src/detect-transform-compress-whitespace.c b/src/detect-transform-compress-whitespace.c index 9810097d0e..97594f598a 100644 --- a/src/detect-transform-compress-whitespace.c +++ b/src/detect-transform-compress-whitespace.c @@ -20,7 +20,7 @@ * * \author Victor Julien * - * Implements the compress_whitespace tranform keyword + * Implements the compress_whitespace transform keyword */ #include "suricata-common.h"