From fb38d90b41b36791a7b5264724dc6a0a1effc0ca Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sat, 7 Nov 2015 20:16:15 +0200 Subject: [PATCH] Prevent crash elsewhere --- pdns/dnsparser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index bb4b532a3..245909d6b 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -429,7 +429,7 @@ DNSName PacketReader::getName() { throw std::out_of_range("dnsname issue"); } - return DNSName(); // if this ever happens.. + throw PDNSException("PacketReader::getName(): name is empty"); } static string txtEscape(const string &name) -- 2.40.0