]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix exit condition.
authorUlrich Drepper <drepper@redhat.com>
Sat, 16 May 2009 17:10:32 +0000 (10:10 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 16 May 2009 17:10:32 +0000 (10:10 -0700)
The patch to bound the search in the nscd caches used a wrong exit
condition.  Fixed now.

ChangeLog
nscd/nscd_helper.c

index bf3dd4936d9e523b695e48b68749f6b3f61b32ab..879b28586e0eb85043c6721dbb2e46850c300a0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * nscd/nscd.h: Move Definition for BLOCK_ALIGN_LOG, BLOCK_ALIGN, and
index 80ee3e1dd9769db0423c45705f0100495a4511f0..c09f00859e46e6912ed46097f01cf7b84d799857 100644 (file)
@@ -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)
        {