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: rec-4.1.1~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8ee565b2330a47d5486a80fec7721af9172f263;p=thirdparty%2Fpdns.git rec: Switch the exception thrown by `getDenial()` to a `PDNSException` (cherry picked from commit dfbe5d76143f9227b287555ca0df9216f2f544d1) --- diff --git a/pdns/validate.cc b/pdns/validate.cc index c866ccc1d6..810bc8dd3a 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) {