aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/posix/getaddrinfo.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4515bfa2b4..8e4d31b781 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-04-26 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix typo which caused
+ bugs not to be reported.
+
* nscd/nscd.h (struct database_dyn): Add propagate field.
* nscd/nscd_conf.c (nscd_parse_file): Parse auto-propagate lines.
* nscd/nscd.conf: Add auto-propagate lines.
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index e4fea334ca..03d26086ac 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -1643,7 +1643,7 @@ getaddrinfo (const char *name, const char *service,
freeaddrinfo (p);
free (in6ai);
- return -(i & GAIH_EAI);
+ return -(last_i & GAIH_EAI);
}
if (end)
while (*end)