]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Initialize d_cleartextDH to make Coverity happy 9770/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 Nov 2020 09:54:22 +0000 (10:54 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 Nov 2020 09:54:22 +0000 (10:54 +0100)
pdns/dnsdistdist/dnsdist-tcp-downstream.hh

index fa4c950ae161e513fac40efbae3ae938c52542f7..48c0901d9bf652e8a6797935156882afee6864d0 100644 (file)
@@ -26,10 +26,13 @@ struct TCPResponse : public TCPQuery
 {
   TCPResponse()
   {
+    /* let's make Coverity happy */
+    memset(&d_cleartextDH, 0, sizeof(d_cleartextDH));
   }
 
   TCPResponse(std::vector<uint8_t>&& buffer, IDState&& state, std::shared_ptr<TCPConnectionToBackend> conn): TCPQuery(std::move(buffer), std::move(state)), d_connection(conn)
   {
+    memset(&d_cleartextDH, 0, sizeof(d_cleartextDH));
   }
 
   std::shared_ptr<TCPConnectionToBackend> d_connection{nullptr};