From: Remi Gacogne Date: Fri, 15 Dec 2017 13:30:46 +0000 (+0100) Subject: rec: Switch the exception thrown by `getDenial()` to a `PDNSException` X-Git-Tag: dnsdist-1.3.0~189^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfbe5d76143f9227b287555ca0df9216f2f544d1;p=pdns rec: Switch the exception thrown by `getDenial()` to a `PDNSException` --- diff --git a/pdns/validate.cc b/pdns/validate.cc index c866ccc1d..810bc8dd3 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -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) {