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-111-gfeb1eb0
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Jul 2011 18:00:25 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.14-111-gfeb1eb0
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 feb1eb0be78b40d53c71474f07d1b0517ba95586 (commit)
from 298711ffe475d2401e8037fd89538228e35ee79a (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=feb1eb0be78b40d53c71474f07d1b0517ba95586
commit feb1eb0be78b40d53c71474f07d1b0517ba95586
Author: Ulrich Drepper <drepper@gmail.com>
Date: Tue Jul 19 13:59:57 2011 -0400
Avoid possible crashes in anormal nscd exits
diff --git a/ChangeLog b/ChangeLog
index 3de9010..b6cc5ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-19 Ulrich Drepper <drepper@gmail.com>
+
+ * nscd/nscd.c (termination_handler): Don't do anything for a database
+ if it has not yet been initialized.
+
2011-07-18 Ulrich Drepper <drepper@gmail.com>
* sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
diff --git a/nscd/nscd.c b/nscd/nscd.c
index 4894cb2..e9bb75d 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -493,7 +493,7 @@ termination_handler (int signum)
/* Synchronize memory. */
for (int cnt = 0; cnt < lastdb; ++cnt)
{
- if (!dbs[cnt].enabled)
+ if (!dbs[cnt].enabled || dbs[cnt].head == NULL)
continue;
/* Make sure nobody keeps using the database. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
nscd/nscd.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources