]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Remove unreachable catch while parsing a DNS packet
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 19 Apr 2022 15:21:00 +0000 (17:21 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 Oct 2022 07:57:05 +0000 (09:57 +0200)
pdns/dnsdistdist/dnsdist-dnsparser.cc

index 19e9e82b446cb9a6f79ed672999efce72d191049..c678a513ecfe4ad81f521b2f0932986ced09435e 100644 (file)
@@ -60,9 +60,6 @@ DNSPacketOverlay::DNSPacketOverlay(const std::string_view& packet)
   catch (const std::exception& e) {
     throw std::runtime_error("Unable to parse DNS packet: " + std::string(e.what()));
   }
-  catch (const PDNSException& e) {
-    throw std::runtime_error("Unable to parse DNS packet: " + e.reason);
-  }
   catch (...) {
     throw std::runtime_error("Unable to parse DNS packet");
   }