diff options
author | Andreas Schneider <asn@samba.org> | 2014-10-09 09:17:07 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-09 12:24:03 +0200 |
commit | c298542fe29c6b38c353417b22dc56c9c8722f6a (patch) | |
tree | 145d115d8cd4748aa1358cff42409afb18ecdd08 /lib/nss_wrapper | |
parent | 2bbd403f39eb5bc6025014fe1514751dd5872207 (diff) | |
download | samba-c298542fe29c6b38c353417b22dc56c9c8722f6a.tar.gz |
nwrap: Make sure addr is initialized.
CID #72755
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/nss_wrapper')
-rw-r--r-- | lib/nss_wrapper/nss_wrapper.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |