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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6092%2Fhead;p=thirdparty%2Fpdns.git rec: Switch the exception thrown by `getDenial()` to a `PDNSException` --- 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) {