From: Aki Tuomi Date: Sun, 18 Oct 2015 18:56:46 +0000 (+0300) Subject: Initialize DNSRecord X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~27^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=748fc8db2a61045befc8b2c40e6373dd5776d72e;p=pdns Initialize DNSRecord Fixes CID#1325471 --- diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index c9c6daaae..17fe387de 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -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 d_content;