From: Pieter Lexis Date: Tue, 18 Jun 2019 15:44:20 +0000 (+0200) Subject: auth secpoll: Set state to unknown when needed X-Git-Tag: dnsdist-1.4.0-rc1~93^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=607f2b3f45359f0bcb8b389a8da4f14b25e9ae59;p=thirdparty%2Fpdns.git auth secpoll: Set state to unknown when needed --- diff --git a/pdns/secpoll-auth.cc b/pdns/secpoll-auth.cc index 57b4ba61c7..a4d60561f5 100644 --- a/pdns/secpoll-auth.cc +++ b/pdns/secpoll-auth.cc @@ -45,12 +45,15 @@ void doSecPoll(bool first) boost::replace_all(query, "+", "_"); boost::replace_all(query, "~", "_"); - int security_status = 0; + int security_status = std::stoi(S.getValueStr("security-status")); vector ret; int res=stubDoResolve(DNSName(query), QType::TXT, ret); if (res != 0) { // not NOERROR + if(security_status == 1) // it was ok, now it is unknown + S.set("security-status", 0); + string pkgv(PACKAGEVERSION); if (std::count(pkgv.begin(), pkgv.end(), '.') > 2) { g_log<