summaryrefslogtreecommitdiff
path: root/nscd/nscd_helper.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-03-05 09:37:45 +0000
committerJakub Jelinek <jakub@redhat.com>2008-03-05 09:37:45 +0000
commit5c25449dd9fd706f79ee6d92019f28044d9270fa (patch)
treead5a2ddd80177af8109c358b71a9baa94f75581f /nscd/nscd_helper.c
parentff9e7e3fe2fa6daf6ef542bb1fd1066164dd33bb (diff)
Updated to fedora-glibc-20080305T0857cvs/fedora-glibc-2_7_90-8
Diffstat (limited to 'nscd/nscd_helper.c')
-rw-r--r--nscd/nscd_helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c
index 866535200f..9828a46df0 100644
--- a/nscd/nscd_helper.c
+++ b/nscd/nscd_helper.c
@@ -1,5 +1,4 @@
-/* Copyright (C) 1998-2002,2003,2004,2005,2006,2007
- Free Software Foundation, Inc.
+/* Copyright (C) 1998-2007, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
@@ -339,6 +338,9 @@ get_mapping (request_type type, const char *key,
if (__builtin_expect (head->version != DB_VERSION, 0)
|| __builtin_expect (head->header_size != sizeof (*head), 0)
+ /* Catch some misconfiguration. The server should catch
+ them now but some older versions did not. */
+ || __builtin_expect (head->module == 0, 0)
/* This really should not happen but who knows, maybe the update
thread got stuck. */
|| __builtin_expect (! head->nscd_certainly_running