]> granicus.if.org Git - pdns/commitdiff
rec: Switch the exception thrown by `getDenial()` to a `PDNSException`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Dec 2017 13:30:46 +0000 (14:30 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Dec 2017 13:30:46 +0000 (14:30 +0100)
pdns/validate.cc

index c866ccc1d65a969e193ecdf76703dc49cf8e6fba..810bc8dd3a862c85d09eecebdce932dd228b2f25 100644 (file)
@@ -310,7 +310,7 @@ dState getDenial(const cspmap_t &validrrsets, const DNSName& qname, const uint16
 {
   bool nsec3Seen = false;
   if (!needWildcardProof && wildcardLabelsCount == 0) {
-    throw std::runtime_error("Invalid wildcard labels count for the validation of a positive answer synthetized from a wildcard");
+    throw PDNSException("Invalid wildcard labels count for the validation of a positive answer synthetized from a wildcard");
   }
 
   for(const auto& v : validrrsets) {