From: Jeff Lucovsky Date: Wed, 5 Feb 2020 14:21:05 +0000 (-0500) Subject: smtp/mime: Fix typos X-Git-Tag: suricata-5.0.3~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96c1a3ed5a4e5d39d24919af039391bf66a75a9b;p=thirdparty%2Fsuricata.git smtp/mime: Fix typos (cherry picked from commit 9a33b5d5ded247e94a6572092ab2aca3f51752b3) --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 874b0b5d61..a4f5e0ef7f 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -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 delimter instead of . + * \test Test smtp with just delimiter instead of . */ static int SMTPParserTest04(void) { diff --git a/src/util-decode-mime.h b/src/util-decode-mime.h index 5ee347c45c..80bb96c234 100644 --- a/src/util-decode-mime.h +++ b/src/util-decode-mime.h @@ -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) */