From: Aki Tuomi Date: Sun, 18 Oct 2015 20:38:24 +0000 (+0300) Subject: Initialize DNSRecordContent header X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~27^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aacfd132ab835763044914cd0fa83d11b24b4c3;p=pdns Initialize DNSRecordContent header fixdes CID#1030052 --- diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index 17fe387de..4ee358012 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -238,7 +238,9 @@ public: } explicit DNSRecordContent(uint16_t type) : d_qtype(type) - {} + { + memset(&header,0,sizeof(header)); + } DNSRecordContent& operator=(const DNSRecordContent& orig)