From: Remi Gacogne Date: Wed, 29 May 2019 08:03:05 +0000 (+0200) Subject: auth: Initialize the 'res' array of NSECBitmapGenerator X-Git-Tag: dnsdist-1.4.0-beta1~8^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d031fa7c454c36b4ef884bf3909120411e49acd1;p=thirdparty%2Fpdns.git auth: Initialize the 'res' array of NSECBitmapGenerator Otherwise coverity wrongly complains that it might be read before being initialized (CID 1401607). --- diff --git a/pdns/nsecrecords.cc b/pdns/nsecrecords.cc index 25132682e3..ce04ddde06 100644 --- a/pdns/nsecrecords.cc +++ b/pdns/nsecrecords.cc @@ -29,7 +29,9 @@ class NSECBitmapGenerator public: NSECBitmapGenerator(DNSPacketWriter& pw_): pw(pw_) { + memset(res, 0, 34); } + void set(uint16_t type) { uint16_t bit = type % 256;