aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-01-19 15:50:05 -0500
committerUlrich Drepper <drepper@gmail.com>2011-01-19 15:50:05 -0500
commit86e9235918a715095a1f5bb1c1db28fae7fca22b (patch)
tree9fc6f3df44296b5555cd4069432ef09dcaf7f4cf
parentc5be0f71d9cac2f9bf0b01bb4b0221ddb6504969 (diff)
downloadglibc-86e9235918a715095a1f5bb1c1db28fae7fca22b.zip
glibc-86e9235918a715095a1f5bb1c1db28fae7fca22b.tar.gz
glibc-86e9235918a715095a1f5bb1c1db28fae7fca22b.tar.bz2
Fix decoding of canonical name in getaddrinfo.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/posix/getaddrinfo.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 40b02db..d3ae8bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-01 Andreas Schwab <schwab@redhat.com>
+
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
+ decoding ACE if AI_CANONIDN.
+
2011-01-18 Ulrich Drepper <drepper@gmail.com>
* elf/Makefile: Build IFUNC tests unless multi-arch = no.
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 126a09e..c61c72a 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -965,6 +965,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
make a copy. */
if (out == canon)
goto make_copy;
+ canon = out;
}
else
#endif