From 607f2b3f45359f0bcb8b389a8da4f14b25e9ae59 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 18 Jun 2019 17:44:20 +0200 Subject: [PATCH] auth secpoll: Set state to unknown when needed --- pdns/secpoll-auth.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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<