From: Remi Gacogne Date: Wed, 25 Nov 2020 09:54:22 +0000 (+0100) Subject: dnsdist: Initialize d_cleartextDH to make Coverity happy X-Git-Tag: auth-4.5.0-alpha0~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9770%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Initialize d_cleartextDH to make Coverity happy --- diff --git a/pdns/dnsdistdist/dnsdist-tcp-downstream.hh b/pdns/dnsdistdist/dnsdist-tcp-downstream.hh index fa4c950ae1..48c0901d9b 100644 --- a/pdns/dnsdistdist/dnsdist-tcp-downstream.hh +++ b/pdns/dnsdistdist/dnsdist-tcp-downstream.hh @@ -26,10 +26,13 @@ struct TCPResponse : public TCPQuery { TCPResponse() { + /* let's make Coverity happy */ + memset(&d_cleartextDH, 0, sizeof(d_cleartextDH)); } TCPResponse(std::vector&& buffer, IDState&& state, std::shared_ptr conn): TCPQuery(std::move(buffer), std::move(state)), d_connection(conn) { + memset(&d_cleartextDH, 0, sizeof(d_cleartextDH)); } std::shared_ptr d_connection{nullptr};