aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/buffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 9a8064a27c..f8c19087a8 100644
--- a/src/or/buffers.c
+++ b/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;