From: Peter van Dijk Date: Thu, 4 Jul 2013 08:24:05 +0000 (+0200) Subject: avoid uninitialized values in LOC constructor X-Git-Tag: rec-3.6.0-rc1~594 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40447d33cd3612bf811e20f44e72ed1c58812e14;p=pdns avoid uninitialized values in LOC constructor --- diff --git a/pdns/sillyrecords.cc b/pdns/sillyrecords.cc index cb8590780..8c0e139ee 100644 --- a/pdns/sillyrecords.cc +++ b/pdns/sillyrecords.cc @@ -219,7 +219,7 @@ LOCRecordContent::LOCRecordContent(const string& content, const string& zone) : } break; default: /* we didn't get one of each */ - return; + throw MOADNSException("Error decoding LOC content"); } /* altitude */