Fix when HTTP header are on several packet

This commit is contained in:
jerome Grandvalet 2021-07-26 15:58:14 +02:00
parent 8cabecec40
commit 83f4903250
2 changed files with 10 additions and 6 deletions

View file

@ -99,10 +99,14 @@ void ContentLine_Analyzer::DeliverStream(int len, const u_char* data,
// If we have parsed all the data of the packet but there is no CRLF at the end
// Force the process by flushing buffer
if ( delivery_length == 0 && HasPartialLine() )
if ( delivery_length == 0 )
{
Weird("No CRLF at the end of the packet");
DoDeliver(2, (const u_char*) "\r\n");
if (HasPartialLine())
{
Weird("line_terminated_without_CRLF");
DoDeliver(2, (const u_char*) "\r\n");
}
delivery_length = -1;
}
seq += len;