]> granicus.if.org Git - pdns/commitdiff
avoid uninitialized values in LOC constructor
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 4 Jul 2013 08:24:05 +0000 (10:24 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 4 Jul 2013 08:24:29 +0000 (10:24 +0200)
pdns/sillyrecords.cc

index cb859078006352a1844fe8f3526cef3b7739fb5b..8c0e139eea33102a460deaf0a5bc9b871ed2b011 100644 (file)
@@ -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 */