]> granicus.if.org Git - pdns/commitdiff
Problem found by coverity.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 27 Sep 2019 14:28:44 +0000 (16:28 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 27 Sep 2019 14:28:44 +0000 (16:28 +0200)
pdns/pdns_recursor.cc

index 75f2bdf648cfc5d87a91fe8963dc2364c26d3145..a0624ef3c1be0d683da5c2621a8d864f49c0b504 100644 (file)
@@ -331,7 +331,7 @@ struct DNSComboWriter {
   EDNSSubnetOpts d_ednssubnet;
   shared_ptr<TCPConnection> d_tcpConnection;
   boost::optional<int> d_rcode{boost::none};
-  int d_socket;
+  int d_socket{-1};
   unsigned int d_tag{0};
   uint32_t d_qhash{0};
   uint32_t d_ttlCap{std::numeric_limits<uint32_t>::max()};