From e24c18b0aab5e6e4cab8739513ba0b6f34b9019e Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 18 Oct 2015 21:00:09 +0300 Subject: [PATCH] Initialize d_clen and d_place Fixes CID#1325472 --- pdns/dnsparser.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index fb230b624..9ef4cc1c3 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -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::mastermake(d_type, rr.qclass, rr.content)); } -- 2.40.0