]> granicus.if.org Git - pdns/commitdiff
Initialize DNSRecord
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 18 Oct 2015 18:56:46 +0000 (21:56 +0300)
committerAki Tuomi <cmouse@desteem.org>
Mon, 26 Oct 2015 10:28:03 +0000 (12:28 +0200)
Fixes CID#1325471

pdns/dnsparser.hh

index c9c6daaaef0afa08a915509b6a7632451e41931b..17fe387deeaeabd00de8eef65ff0b64bb802d4df 100644 (file)
@@ -265,7 +265,13 @@ protected:
 
 struct DNSRecord
 {
-  DNSRecord() = default;
+  DNSRecord() {
+    d_type = 0;
+    d_class = QClass::IN;
+    d_ttl = 0;
+    d_clen = 0;
+    d_place = DNSResourceRecord::ANSWER;
+  }
   explicit DNSRecord(const DNSResourceRecord& rr);
   DNSName d_name;
   std::shared_ptr<DNSRecordContent> d_content;