From bf2bde603f3e245f3de82ecb484a6fc3d9ad19bd Mon Sep 17 00:00:00 2001 From: Le Yao Date: Thu, 1 Jul 2021 04:10:37 -0400 Subject: [PATCH] Remove unsupport calls Signed-off-by: Le Yao --- src/operators/rbl.cc | 2 +- src/rule_with_actions.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/operators/rbl.cc b/src/operators/rbl.cc index ffdb17a2..9f09c5a7 100644 --- a/src/operators/rbl.cc +++ b/src/operators/rbl.cc @@ -211,7 +211,7 @@ bool Rbl::evaluate(Transaction *t, RuleWithActions *rule, return false; } - rc = getaddrinfo(host.c_str(), NULL, NULL, &info); + rc = 0; if (rc != 0) { if (info != NULL) { diff --git a/src/rule_with_actions.cc b/src/rule_with_actions.cc index 5ac17a26..8c61e853 100644 --- a/src/rule_with_actions.cc +++ b/src/rule_with_actions.cc @@ -120,7 +120,6 @@ RuleWithActions::RuleWithActions( delete a; std::cout << "General failure, action: " << a->m_name; std::cout << " has an unknown type." << std::endl; - throw; } } delete actions;