mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Remove annoying error message from connsize bifs.
The connsize bifs used to output a reporter message when they could not find the associated connection. This patch disables this message; it is not useful and can happen during normal operation when trying to use thresholding on short-lived connections. This case is still reported by the boolean value that the respective functions return.
This commit is contained in:
parent
6ffa99d67e
commit
c1f8e3baec
1 changed files with 0 additions and 3 deletions
|
@ -5,10 +5,7 @@ static analyzer::Analyzer* GetConnsizeAnalyzer(Val* cid)
|
||||||
{
|
{
|
||||||
Connection* c = sessions->FindConnection(cid);
|
Connection* c = sessions->FindConnection(cid);
|
||||||
if ( ! c )
|
if ( ! c )
|
||||||
{
|
|
||||||
reporter->Error("cannot find connection");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
analyzer::Analyzer* a = c->FindAnalyzer("CONNSIZE");
|
analyzer::Analyzer* a = c->FindAnalyzer("CONNSIZE");
|
||||||
if ( ! a )
|
if ( ! a )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue