From 95410b7ba23c44f6a038285d9c38ee84129e4cd6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 16 May 2009 10:10:32 -0700 Subject: Fix exit condition. The patch to bound the search in the nscd caches used a wrong exit condition. Fixed now. --- nscd/nscd_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nscd') diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 80ee3e1dd9..c09f00859e 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -528,7 +528,7 @@ __nscd_cache_search (request_type type, const char *key, size_t keylen, work = atomic_forced_read (here->next); /* Prevent endless loops. This should never happen but perhaps the database got corrupted, accidentally or deliberately. */ - if (work == trail || loop_cnt-- > 0) + if (work == trail || loop_cnt-- == 0) break; if (tick) { -- cgit v1.2.3