From cb1e7a9fabd47e715d1959a149842c541ecc6e54 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Mon, 5 Jun 2023 16:18:15 +0530 Subject: [PATCH] ftp: remove unnecessary code --- src/app-layer-ftp.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index db2b47c8da..f96fcc362f 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -373,20 +373,6 @@ static AppLayerResult FTPGetLineForDirection( // e.g. input_len = 5077 // lf_idx = 5010 // max_line_len = 4096 - if (!*current_line_truncated && (uint32_t)input->len >= ftp_max_line_len) { - *current_line_truncated = true; - line->buf = input->buf; - line->len = ftp_max_line_len; - if (input->consumed >= 2 && input->buf[input->consumed - 2] == 0x0D) { - line->delim_len = 2; - line->len -= 2; - } else { - line->delim_len = 1; - line->len -= 1; - } - input->len = 0; - SCReturnStruct(APP_LAYER_OK); - } uint32_t o_consumed = input->consumed; input->consumed = lf_idx - input->buf + 1; line->len = input->consumed - o_consumed;