From: Victor Julien Date: Sun, 5 Jun 2022 16:23:55 +0000 (+0200) Subject: smtp: remove defunct check for line with single LF X-Git-Tag: suricata-6.0.6~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3be76e23bca8667e5d4abf0e495116ecb26749;p=thirdparty%2Fsuricata.git smtp: remove defunct check for line with single LF Don't fix it as DATA processing needs all the bytes. (cherry picked from commit 96bb67f474242936c029e57be3d4da1365150943) --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 791f645231..da83df2eae 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -1039,12 +1039,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)