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

pdns/dnsparser.cc

index fb230b624d6e937a2979cdf3244ae4063c0dfdb1..9ef4cc1c30b8c10b18e27ca776b58c3931d8b1a2 100644 (file)
@@ -225,6 +225,8 @@ DNSRecord::DNSRecord(const DNSResourceRecord& rr)
   d_type = rr.qtype.getCode();
   d_ttl = rr.ttl;
   d_class = rr.qclass;
+  d_place = rr.d_place;
+  d_clen = 0;
   d_content = std::shared_ptr<DNSRecordContent>(DNSRecordContent::mastermake(d_type, rr.qclass, rr.content));
 }