From c298542fe29c6b38c353417b22dc56c9c8722f6a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 9 Oct 2014 09:17:07 +0200 Subject: [PATCH] nwrap: Make sure addr is initialized. CID #72755 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- lib/nss_wrapper/nss_wrapper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index c066e47f51d..a41de9e9fbb 100644 --- a/lib/nss_wrapper/nss_wrapper.c +++ b/lib/nss_wrapper/nss_wrapper.c @@ -3865,7 +3865,9 @@ static int nwrap_getaddrinfo(const char *node, struct in6_addr v6; } in; #endif - } addr; + } addr = { + .family = AF_UNSPEC, + }; int eai = EAI_SYSTEM; int ret; int rc; -- 2.11.4.GIT