From c1da23469326ceb1eedb773d4bd17099faa9b0f8 Mon Sep 17 00:00:00 2001
From: Yuchen Zeng <zyc@google.com>
Date: Thu, 18 Aug 2016 11:30:22 -0700
Subject: [PATCH] Fix msan issue

---
 src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c b/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
index 1c03351b75..c8391a7862 100644
--- a/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
+++ b/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
@@ -128,6 +128,7 @@ static void on_done_cb(void *arg, int status, int timeouts,
                     sizeof(grpc_resolved_address) * (*addresses)->naddrs);
 
     for (i = prev_naddr; i < (*addresses)->naddrs; i++) {
+      memset(&(*addresses)->addrs[i], 0, sizeof(grpc_resolved_address));
       if (hostent->h_addrtype == AF_INET6) {
         char output[INET6_ADDRSTRLEN];
         gpr_log(GPR_ERROR, "AF_INET6");
-- 
GitLab