]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r17403@catbus: nickm | 2007-12-26 22:23:50 -0500
authorNick Mathewson <nickm@torproject.org>
Thu, 27 Dec 2007 03:23:57 +0000 (03:23 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 27 Dec 2007 03:23:57 +0000 (03:23 +0000)
 Apparently loops work better when you actually increment/decrement the loop variable.  Who knew?

svn:r12992

src/or/buffers.c

index 9a8064a27cd6bd6f89cd095b1a6990773f5ce705..f8c19087a82c092883b2135061cfd057b4c96ba7 100644 (file)
@@ -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;