From 4aacfd132ab835763044914cd0fa83d11b24b4c3 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 18 Oct 2015 23:38:24 +0300 Subject: [PATCH] Initialize DNSRecordContent header fixdes CID#1030052 --- pdns/dnsparser.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.40.0