Browse Source

r17403@catbus: nickm | 2007-12-26 22:23:50 -0500
Apparently loops work better when you actually increment/decrement the loop variable. Who knew?


svn:r12992

Nick Mathewson 16 years ago
parent
commit
148e2e1c48
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/or/buffers.c

+ 1 - 0
src/or/buffers.c

@@ -237,6 +237,7 @@ buf_shrink_freelists(int free_all)
       while (n_to_skip) {
         tor_assert((*chp)->next);
         chp = &(*chp)->next;
+        --n_to_skip;
       }
       chunk = *chp;
       *chp = NULL;