From cd66c37711ba342bbbaa1dc59dd41d06fa480eeb Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 25 Nov 2019 14:03:13 +0100 Subject: [PATCH] http/multipart: use proper progress value to test eof --- src/app-layer-htp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 2fbfadd8a9..5a85aa4567 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -1342,7 +1342,7 @@ static int HtpRequestBodyHandleMultipart(HtpState *hstate, HtpTxUserData *htud, filedata_len = form_end - filedata; } else if (form_end != NULL && form_end == header_start) { filedata_len = form_end - filedata - 2; /* 0d 0a */ - } else if (tx_progress > HTP_RESPONSE_BODY) { + } else if (tx_progress > HTP_REQUEST_BODY) { filedata_len = chunks_buffer_len; flags = FILE_TRUNCATED; }