From 73f0dfff6d1aa978a970bbbcf883cfce9a6dbacd Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 16 Oct 2017 13:20:12 +0200 Subject: [PATCH] Auth: Don't warn on empty default-{k,z}sk-algorithm Closes #5809 --- pdns/common_startup.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 28867457f..3bdc364f8 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -528,6 +528,8 @@ void mainthread() // Some sanity checking on default key settings for (const string& algotype : {"ksk", "zsk"}) { int algo, size; + if (::arg()["default-"+algotype+"-algorithm"].empty()) + continue; algo = DNSSECKeeper::shorthand2algorithm(::arg()["default-"+algotype+"-algorithm"]); size = ::arg().asNum("default-"+algotype+"-size"); if (algo == -1) -- 2.40.0