This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.14-525-g09f93bd
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 15 Nov 2011 09:58:21 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.14-525-g09f93bd
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, master has been updated
via 09f93bd3d6b1c41370432e6b7a3c88d0fc482881 (commit)
from 312be3f9f5eab1643d7dcc7728c76d413d4f2640 (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=09f93bd3d6b1c41370432e6b7a3c88d0fc482881
commit 09f93bd3d6b1c41370432e6b7a3c88d0fc482881
Author: Andreas Schwab <schwab@redhat.com>
Date: Tue Nov 15 10:32:18 2011 +0100
Fix reference counting in network interface information cache
diff --git a/ChangeLog b/ChangeLog
index 139ba57..8bb2513 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-15 Andreas Schwab <schwab@redhat.com>
+
+ * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
+ count references to noai6ai_cached.
+
2011-11-15 Ulrich Drepper <drepper@gmail.com>
* time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c
index 1f66684..895dc2a 100644
--- a/sysdeps/unix/sysv/linux/check_pf.c
+++ b/sysdeps/unix/sysv/linux/check_pf.c
@@ -58,7 +58,7 @@ struct cached_data
static struct cached_data noai6ai_cached =
{
- .usecnt = 3, /* Make sure we never try to delete this entry. */
+ .usecnt = 1, /* Make sure we never try to delete this entry. */
.in6ailen = 0
};
@@ -273,6 +273,7 @@ make_request (int fd, pid_t pid)
}
else
{
+ atomic_add(&noai6ai_cached.usecnt, 2);
noai6ai_cached.seen_ipv4 = seen_ipv4;
noai6ai_cached.seen_ipv6 = seen_ipv6;
result = &noai6ai_cached;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/check_pf.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources