From 0463928a1e6045e0ca16460313382a443116a5d3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 18 Dec 2016 22:16:52 +0900 Subject: [PATCH] nghttpx: Fix uninitialized errors found by coverity scan --- src/shrpx_dns_resolver.cc | 3 ++- src/shrpx_http_downstream_connection.cc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shrpx_dns_resolver.cc b/src/shrpx_dns_resolver.cc index 90c07a2f..87b418c2 100644 --- a/src/shrpx_dns_resolver.cc +++ b/src/shrpx_dns_resolver.cc @@ -112,7 +112,8 @@ void stop_ev(struct ev_loop *loop, } // namespace DNSResolver::DNSResolver(struct ev_loop *loop) - : loop_(loop), + : result_{}, + loop_(loop), channel_(nullptr), family_(AF_UNSPEC), status_(DNS_STATUS_IDLE) { diff --git a/src/shrpx_http_downstream_connection.cc b/src/shrpx_http_downstream_connection.cc index d0fbe82b..70333a09 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -175,6 +175,7 @@ HttpDownstreamConnection::HttpDownstreamConnection( ssl_ctx_(worker->get_cl_ssl_ctx()), group_(group), addr_(nullptr), + raddr_(nullptr), ioctrl_(&conn_.rlimit), response_htp_{0}, initial_addr_idx_(initial_addr_idx) {}