]> 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>
Mon, 6 Jun 2022 07:02:43 +0000 (09:02 +0200)
Don't fix it as DATA processing needs all the bytes.

src/app-layer-smtp.c

index d3b1a18a3667347eb4e86ea8f6c1318939fab4fd..92fc71e9a92acd35b9ad790718e71807f3b87f1f 100644 (file)
@@ -1124,11 +1124,6 @@ static int SMTPProcessRequest(SMTPState *state, Flow *f, AppLayerParserState *ps
     SCEnter();
     SMTPTransaction *tx = state->curr_tx;
 
-    /* Line with just LF */
-    if (line->len == 0 && input->consumed == 1 && line->delim_len == 0) {
-        return 0; // to continue processing further
-    }
-
     if (state->curr_tx == NULL || (state->curr_tx->done && !NoNewTx(state, line))) {
         tx = SMTPTransactionCreate();
         if (tx == NULL)