]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: remove defunct check for line with single LF
authorVictor Julien <vjulien@oisf.net>
Sun, 5 Jun 2022 16:23:55 +0000 (18:23 +0200)
committerVictor Julien <vjulien@oisf.net>
Sat, 18 Jun 2022 14:16:35 +0000 (16:16 +0200)
Don't fix it as DATA processing needs all the bytes.

(cherry picked from commit 96bb67f474242936c029e57be3d4da1365150943)

src/app-layer-smtp.c

index 5ddb37182c49e4dc1435cd431771a5c662a32946..47edaf5b9074d8869089ae62b50e3126928aa557 100644 (file)
@@ -1251,12 +1251,6 @@ static int SMTPProcessRequest(SMTPState *state, Flow *f,
     SCEnter();
     SMTPTransaction *tx = state->curr_tx;
 
-    /* Line with just LF */
-    if (state->current_line_len == 0 && state->consumed == 1 &&
-            state->current_line_delimiter_len == 0) {
-        return 0; // to continue processing further
-    }
-
     if (state->curr_tx == NULL || (state->curr_tx->done && !NoNewTx(state))) {
         tx = SMTPTransactionCreate();
         if (tx == NULL)