mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Fix when HTTP header are on several packet
This commit is contained in:
parent
8cabecec40
commit
83f4903250
2 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue