mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
GH-1184: Add 'source' field to weird log denoting where the weird was reported
This commit is contained in:
parent
eccbbb4476
commit
e27008ef26
72 changed files with 964 additions and 890 deletions
|
@ -263,7 +263,7 @@ int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data)
|
|||
else
|
||||
{
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(SINGULAR_LF) )
|
||||
Conn()->Weird("line_terminated_with_single_LF");
|
||||
Weird("line_terminated_with_single_LF");
|
||||
buf[offset++] = c;
|
||||
}
|
||||
break;
|
||||
|
@ -282,7 +282,7 @@ int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data)
|
|||
|
||||
if ( last_char == '\r' )
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(SINGULAR_CR) )
|
||||
Conn()->Weird("line_terminated_with_single_CR");
|
||||
Weird("line_terminated_with_single_CR");
|
||||
|
||||
last_char = c;
|
||||
}
|
||||
|
@ -312,7 +312,7 @@ void ContentLine_Analyzer::CheckNUL()
|
|||
else
|
||||
{
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(NUL_IN_LINE) )
|
||||
Conn()->Weird("NUL_in_line");
|
||||
Weird("NUL_in_line");
|
||||
flag_NULs = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue