]> granicus.if.org Git - pdns/commitdiff
Mark servfail.nl as bogus
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 11 Jan 2016 17:31:08 +0000 (18:31 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 12 Jan 2016 13:11:01 +0000 (14:11 +0100)
if we have keys, but could validate nothing, consider the situation Bogus.

pdns/validate-recursor.cc

index 4b951d97e2a39b53f502f18ca32dca114a5d6c82..2012ed62033a972ad3102d9567f2e73fe867e212 100644 (file)
@@ -68,5 +68,7 @@ vState validateRecords(const vector<DNSRecord>& recs)
   //  cerr<<"Took "<<sro.d_queries<<" queries"<<endl;
   if(validrrsets.size() == cspmap.size())
     return Secure;
+  if(keys.size())
+    return Bogus;
   return Insecure;
 }