From 70ac2396a09ddbba51673e509c348136d7634e0e 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. (cherry picked from commit a47cc75dfa7519bcf7b31cee511852ae954a50f8) --- pdns/rec-lua-conf.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pdns/rec-lua-conf.cc b/pdns/rec-lua-conf.cc index 0481c8a0cc..8737f63204 100644 --- a/pdns/rec-lua-conf.cc +++ b/pdns/rec-lua-conf.cc @@ -370,8 +370,13 @@ void loadRecursorLuaConfig(const std::string& fname, luaConfigDelayedThreads& de throw PDNSException("The RPZ zone " + zoneName + " loaded from the seed file (" + zone->getDomain().toString() + ") has no SOA record"); } } - catch(const std::exception& e) { + catch(const PDNSException& e) { + g_log<clear(); + } + catch(const std::exception& e) { g_log<clear(); } } } -- 2.47.2