This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, release/2.10/master, updated. glibc-2.10.1-69-gaa152ec
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 Aug 2009 13:47:03 -0000
- Subject: GNU C Library master sources branch, release/2.10/master, updated. glibc-2.10.1-69-gaa152ec
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.10/master has been updated
via aa152ec6ad1bcc84a53f3c02810c7d968d1b8216 (commit)
from c87c885303b406c5f636841b8289425062f3c7c6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=aa152ec6ad1bcc84a53f3c02810c7d968d1b8216
commit aa152ec6ad1bcc84a53f3c02810c7d968d1b8216
Author: Ulrich Drepper <drepper@redhat.com>
Date: Sat Jul 25 12:29:04 2009 -0700
Handle missing NSS modules and those without callbacks.
getaddrinfo didn't update the status variable in that round of the
loop if no callback was used.
(cherry picked from commit 657317537c09b82a2feb1194fda045f63e3a1222)
diff --git a/ChangeLog b/ChangeLog
index ec8c64a..637b91b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-25 Ulrich Drepper <drepper@redhat.com>
+
+ [BZ #10448]
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
+ callback we must touch the status to avoid using stale value.
+
2009-06-16 Ulrich Drepper <drepper@redhat.com>
* login/Makefile: Build pt_chown as PIE.
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index d346c62..a788d18 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -833,6 +833,8 @@ gaih_inet (const char *name, const struct gaih_service *service,
&& inet6_status != NSS_STATUS_UNAVAIL)
status = inet6_status;
}
+ else
+ status = NSS_STATUS_UNAVAIL;
}
if (nss_next_action (nip, status) == NSS_ACTION_RETURN)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
sysdeps/posix/getaddrinfo.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources