general: Correct typos

pull/5047/head
Jeff Lucovsky 6 years ago committed by Victor Julien
parent 4407cf8979
commit b569670c33

@ -84,7 +84,7 @@ static void SigMatchTransferSigMatchAcrossLists(SigMatch *sm,
typedef struct SigDuplWrapper_ { typedef struct SigDuplWrapper_ {
/* the signature we want to wrap */ /* the signature we want to wrap */
Signature *s; 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; Signature *s_prev;
} SigDuplWrapper; } 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 * Parses rule tokens that may be lists such as addresses and ports
* handling the case when they may not be lists. * 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. * parsed.
* \param output buffer to copy token into. * \param output buffer to copy token into.
* \param output_size length of output buffer. * \param output_size length of output buffer.
@ -1292,7 +1292,7 @@ Signature *SigAlloc (void)
/** /**
* \internal * \internal
* \brief Free Medadata list * \brief Free Metadata list
* *
* \param s Pointer to the signature * \param s Pointer to the signature
*/ */
@ -1591,7 +1591,7 @@ static int SigMatchListLen(SigMatch *sm)
} }
/** \brief convert SigMatch list to SigMatchData array /** \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) SigMatchData* SigMatchList2DataArray(SigMatch *head)
{ {
@ -2300,7 +2300,7 @@ end:
* If the signature is bidirectional it should append two signatures * If the signature is bidirectional it should append two signatures
* (with the addresses switched) into the list. Also handle duplicate * (with the addresses switched) into the list. Also handle duplicate
* signatures. In case of duplicate sigs, use the ones that have the * 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. * sigs. If 2 sigs have the same sid and gid, they are duplicates.
* *
* \param de_ctx Pointer to the Detection Engine Context. * \param de_ctx Pointer to the Detection Engine Context.
@ -4071,7 +4071,7 @@ static int SigParseBidirWithSameSrcAndDest02(void)
SigFree(de_ctx, s); SigFree(de_ctx, s);
// Source is a subset of destinationn // Source is a subset of destination
s = SigInit(de_ctx, 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;)"); "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); FAIL_IF_NULL(s);

@ -20,7 +20,7 @@
* *
* \author Victor Julien <victor@inliniac.net> * \author Victor Julien <victor@inliniac.net>
* *
* Implements the compress_whitespace tranform keyword * Implements the compress_whitespace transform keyword
*/ */
#include "suricata-common.h" #include "suricata-common.h"

Loading…
Cancel
Save