From 78463734c14d180e4d8e16c6e66fb213fc3479c0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 15 May 2008 07:57:49 +0000 Subject: Updated to fedora-glibc-20080515T0735 --- nscd/cache.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nscd/cache.c') diff --git a/nscd/cache.c b/nscd/cache.c index 7e9b0dc2df..f4a9de530a 100644 --- a/nscd/cache.c +++ b/nscd/cache.c @@ -1,4 +1,4 @@ -/* Copyright (c) 1998, 1999, 2003-2006, 2007 Free Software Foundation, Inc. +/* Copyright (c) 1998, 1999, 2003-2007, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -161,6 +161,11 @@ cache_add (int type, const void *key, size_t len, struct datahead *packet, { ++table->head->addfailed; + /* If necessary mark the entry as unusable so that lookups will + not use it. */ + if (first) + packet->usable = false; + /* Mark the in-flight memory as unused. */ for (enum in_flight idx = 0; idx < IDX_record_data; ++idx) mem_in_flight.block[idx].dbidx = -1; -- cgit v1.2.3