]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.
authorUlrich Drepper <drepper@redhat.com>
Mon, 24 Apr 2006 17:21:40 +0000 (17:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 24 Apr 2006 17:21:40 +0000 (17:21 +0000)
ChangeLog
sysdeps/posix/getaddrinfo.c

index 4fda804d86599eef91a16142b9e700b56e4107bd..b72a1f01477ff519f1bcf8da86616d53a39c029c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-04-24  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.
+
 2006-04-24  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use
index 843e60bba3cdb2f0049ae0784cbd83a4bc8cbbb8..e4fea334ca4abd99ba19953737420bd91d8297b5 100644 (file)
@@ -1516,7 +1516,7 @@ getaddrinfo (const char *name, const char *service,
   if ((hints->ai_flags & AI_CANONNAME) && name == NULL)
     return EAI_BADFLAGS;
 
-  struct in6addrinfo *in6ai;
+  struct in6addrinfo *in6ai = NULL;
   size_t in6ailen;
   bool seen_ipv4 = false;
   bool seen_ipv6 = false;