mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Fix exit condition.
The patch to bound the search in the nscd caches used a wrong exit condition. Fixed now.
This commit is contained in:
parent
a5b8b56df7
commit
95410b7ba2
@ -1,3 +1,8 @@
|
|||||||
|
2009-05-16 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
|
||||||
|
patch.
|
||||||
|
|
||||||
2009-05-15 Ulrich Drepper <drepper@redhat.com>
|
2009-05-15 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* nscd/nscd.h: Move Definition for BLOCK_ALIGN_LOG, BLOCK_ALIGN, and
|
* nscd/nscd.h: Move Definition for BLOCK_ALIGN_LOG, BLOCK_ALIGN, and
|
||||||
|
@ -528,7 +528,7 @@ __nscd_cache_search (request_type type, const char *key, size_t keylen,
|
|||||||
work = atomic_forced_read (here->next);
|
work = atomic_forced_read (here->next);
|
||||||
/* Prevent endless loops. This should never happen but perhaps
|
/* Prevent endless loops. This should never happen but perhaps
|
||||||
the database got corrupted, accidentally or deliberately. */
|
the database got corrupted, accidentally or deliberately. */
|
||||||
if (work == trail || loop_cnt-- > 0)
|
if (work == trail || loop_cnt-- == 0)
|
||||||
break;
|
break;
|
||||||
if (tick)
|
if (tick)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user