]> granicus.if.org Git - pdns/commitdiff
Initialize DNSRecordContent header
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 18 Oct 2015 20:38:24 +0000 (23:38 +0300)
committerAki Tuomi <cmouse@desteem.org>
Mon, 26 Oct 2015 10:28:04 +0000 (12:28 +0200)
fixdes CID#1030052

pdns/dnsparser.hh

index 17fe387deeaeabd00de8eef65ff0b64bb802d4df..4ee358012a16d211ba39fcf18f66e2697ec4118f 100644 (file)
@@ -238,7 +238,9 @@ public:
   }
 
   explicit DNSRecordContent(uint16_t type) : d_qtype(type)
-  {}
+  {
+     memset(&header,0,sizeof(header));
+  }
   
   
   DNSRecordContent& operator=(const DNSRecordContent& orig)