From: Aki Tuomi Date: Sun, 18 Oct 2015 18:00:09 +0000 (+0300) Subject: Initialize d_clen and d_place X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~27^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e24c18b0aab5e6e4cab8739513ba0b6f34b9019e;p=thirdparty%2Fpdns.git Initialize d_clen and d_place Fixes CID#1325472 --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index fb230b624d..9ef4cc1c30 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)); }