From b8874063383cd2fa729cb11b59024edd43ea3d71 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 29 Sep 2015 21:58:22 +0300 Subject: [PATCH] Initialize DNSPacket members fix cid#1030053 --- pdns/dnspacket.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index ccf180e2b..cf3e6480c 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -62,6 +62,15 @@ DNSPacket::DNSPacket() d_dnssecOk=false; d_ednsversion=0; d_ednsrcode=0; + memset(&d, 0, sizeof(d)); + qclass = QClass::IN; + d_tsig_algo = TSIG_MD5; + d_havetsig = false; + d_socket = -1; + d_maxreplylen = 0; + d_qlen = 0; + d_tsigtimersonly = false; + d_haveednssection = false; } const string& DNSPacket::getString() -- 2.40.0