From dfbe5d76143f9227b287555ca0df9216f2f544d1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 15 Dec 2017 14:30:46 +0100 Subject: [PATCH] rec: Switch the exception thrown by `getDenial()` to a `PDNSException` --- pdns/validate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1