]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp/mime: Fix typos
authorJeff Lucovsky <jeff@lucovsky.org>
Wed, 5 Feb 2020 14:21:05 +0000 (09:21 -0500)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 22 Mar 2020 15:41:24 +0000 (11:41 -0400)
(cherry picked from commit 9a33b5d5ded247e94a6572092ab2aca3f51752b3)

src/app-layer-smtp.c
src/util-decode-mime.h

index 874b0b5d61235c689a3e836652d4729e5cda5065..a4f5e0ef7fd922a0141c3543ab03495a8b0ac6a2 100644 (file)
@@ -560,7 +560,7 @@ int SMTPProcessDataChunk(const uint8_t *chunk, uint32_t len,
  *
  * \param state The smtp state.
  *
- * \retval  0 On suceess.
+ * \retval  0 On success.
  * \retval -1 Either when we don't have any new lines to supply anymore or
  *            on failure.
  */
@@ -890,7 +890,7 @@ static int SMTPProcessCommandDATA(SMTPState *state, Flow *f,
     SCEnter();
 
     if (!(state->parser_state & SMTP_PARSER_STATE_COMMAND_DATA_MODE)) {
-        /* looks like are still waiting for a confirmination from the server */
+        /* looks like are still waiting for a confirmation from the server */
         return 0;
     }
 
@@ -3054,7 +3054,7 @@ end:
 }
 
 /*
- * \test Test smtp with just <LF> delimter instead of <CR><LF>.
+ * \test Test smtp with just <LF> delimiter instead of <CR><LF>.
  */
 static int SMTPParserTest04(void)
 {
index 5ee347c45c1438fe24174a3c2daa1b08ab8b7d74..80bb96c23450f8c8a23c1ff3e971aa11254074e0 100644 (file)
@@ -52,7 +52,7 @@
 
 /* Anomaly Flags */
 #define ANOM_INVALID_BASE64      1  /* invalid base64 chars */
-#define ANOM_INVALID_QP          2  /* invalid qouted-printable chars */
+#define ANOM_INVALID_QP          2  /* invalid quoted-printable chars */
 #define ANOM_LONG_HEADER_NAME    4  /* header is abnormally long */
 #define ANOM_LONG_HEADER_VALUE   8  /* header value is abnormally long
                                      * (includes multi-line) */