From: Pieter Lexis Date: Mon, 16 Oct 2017 11:20:12 +0000 (+0200) Subject: Auth: Don't warn on empty default-{k,z}sk-algorithm X-Git-Tag: rec-4.1.0-rc2~33^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73f0dfff6d1aa978a970bbbcf883cfce9a6dbacd;p=thirdparty%2Fpdns.git Auth: Don't warn on empty default-{k,z}sk-algorithm Closes #5809 --- diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 28867457fb..3bdc364f84 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)