From a47cc75dfa7519bcf7b31cee511852ae954a50f8 Mon Sep 17 00:00:00 2001 From: Otto Date: Tue, 13 Apr 2021 15:16:09 +0200 Subject: [PATCH] Exception loading the RPZ seedfile is not fatal. Catch PDNSException and clear on failure. --- pdns/rec-lua-conf.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/rec-lua-conf.cc b/pdns/rec-lua-conf.cc index fa6a4c13bd..3631dc2761 100644 --- a/pdns/rec-lua-conf.cc +++ b/pdns/rec-lua-conf.cc @@ -300,8 +300,13 @@ static void rpzPrimary(LuaConfigItems& lci, luaConfigDelayedThreads& delayedThre throw PDNSException("The RPZ zone " + zoneName + " loaded from the seed file (" + zone->getDomain().toString() + ") has no SOA record"); } } + catch(const PDNSException& e) { + g_log<clear(); + } catch(const std::exception& e) { g_log<clear(); } } } -- 2.47.2