diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-10-17 14:52:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-10-17 14:52:44 -0400 |
commit | 66ecdcdd7573f1dafbdb1e14a7ef375f04be812c (patch) | |
tree | b87d57acb7a1ea3d5bae316bb1dc8e2208de1a0d /src/or/buffers.c | |
parent | 1a7488106326d2327fc24f32b13979b7029b813b (diff) | |
download | tor-66ecdcdd7573f1dafbdb1e14a7ef375f04be812c.tar.gz tor-66ecdcdd7573f1dafbdb1e14a7ef375f04be812c.zip |
Update the buffer sentinel fix to work with our #20081 fix.
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 a7b46bf908..8981fd283b 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -205,7 +205,7 @@ chunk_grow(chunk_t *chunk, size_t sz) STATIC size_t preferred_chunk_size(size_t target) { - tor_assert(target <= SIZE_T_CEILING - CHUNK_HEADER_LEN); + tor_assert(target <= SIZE_T_CEILING - CHUNK_OVERHEAD); if (CHUNK_ALLOC_SIZE(target) >= MAX_CHUNK_ALLOC) return CHUNK_ALLOC_SIZE(target); size_t sz = MIN_CHUNK_ALLOC; |