From: Aki Tuomi Date: Sat, 7 Nov 2015 18:16:15 +0000 (+0200) Subject: Prevent crash elsewhere X-Git-Tag: dnsdist-1.0.0-alpha1~239^2~4^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb38d90b41b36791a7b5264724dc6a0a1effc0ca;p=pdns Prevent crash elsewhere --- 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)