]> granicus.if.org Git - pdns/commitdiff
Prevent crash elsewhere
authorAki Tuomi <cmouse@cmouse.fi>
Sat, 7 Nov 2015 18:16:15 +0000 (20:16 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Sat, 7 Nov 2015 18:16:15 +0000 (20:16 +0200)
pdns/dnsparser.cc

index bb4b532a33be2306fd35645cbb9201038cd488d5..245909d6bf6bbd18bad4d48535cf8f949152ab6b 100644 (file)
@@ -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)