From: Otto Moerbeek Date: Fri, 27 Sep 2019 14:28:44 +0000 (+0200) Subject: Problem found by coverity. X-Git-Tag: dnsdist-1.4.0-rc4~54^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e53b77e21796d001616c676884a9dbe0f5cda75c;p=thirdparty%2Fpdns.git Problem found by coverity. --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 75f2bdf648..a0624ef3c1 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -331,7 +331,7 @@ struct DNSComboWriter { EDNSSubnetOpts d_ednssubnet; shared_ptr d_tcpConnection; boost::optional 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::max()};