From c1f8e3baec94752cc8d38bae64d03f4961beef8c Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Mon, 18 Sep 2017 14:07:12 -0700 Subject: [PATCH] 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. --- src/analyzer/protocol/conn-size/functions.bif | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/analyzer/protocol/conn-size/functions.bif b/src/analyzer/protocol/conn-size/functions.bif index a05359a17b..225e9db913 100644 --- a/src/analyzer/protocol/conn-size/functions.bif +++ b/src/analyzer/protocol/conn-size/functions.bif @@ -5,10 +5,7 @@ static analyzer::Analyzer* GetConnsizeAnalyzer(Val* cid) { Connection* c = sessions->FindConnection(cid); if ( ! c ) - { - reporter->Error("cannot find connection"); return 0; - } analyzer::Analyzer* a = c->FindAnalyzer("CONNSIZE"); if ( ! a )