diff options
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 6c88c3923f..8e674eea0f 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -323,7 +323,7 @@ buf_resize(buf_t *buf, size_t new_capacity) } } - if (new_capacity < MIN_LAZY_SHRINK_SIZE) + if (buf->len == 0 && new_capacity < MIN_LAZY_SHRINK_SIZE) new_capacity = MIN_LAZY_SHRINK_SIZE; if (buf->len == 0 && IS_FREELIST_SIZE(new_capacity)) { |