diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-04-08 18:04:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-04-08 18:04:05 +0000 |
commit | 98aea7186c6925f6f7b7c11018b7f3621b7c4f02 (patch) | |
tree | 7079179bdd94437a1efc7e0312b79a1b0ab5d2b8 /src/common/memarea.c | |
parent | a725d5da5e4166293b5c880c992634526e9d2949 (diff) | |
download | tor-98aea7186c6925f6f7b7c11018b7f3621b7c4f02.tar.gz tor-98aea7186c6925f6f7b7c11018b7f3621b7c4f02.zip |
r19249@catbus: nickm | 2008-04-08 14:04:02 -0400
Oops. Fix one last memarea freelist bug.
svn:r14322
Diffstat (limited to 'src/common/memarea.c')
-rw-r--r-- | src/common/memarea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/memarea.c b/src/common/memarea.c index 070c3b59a3..28144c3bb9 100644 --- a/src/common/memarea.c +++ b/src/common/memarea.c @@ -177,7 +177,7 @@ memarea_alloc(memarea_t *area, size_t sz) char *result; tor_assert(chunk); if (chunk->next_mem+sz > chunk->u.mem+chunk->mem_size) { - if (sz+CHUNK_HEADER_SIZE >= area->chunk_size) { + if (sz+CHUNK_HEADER_SIZE >= CHUNK_SIZE) { /* This allocation is too big. Stick it in a special chunk, and put * that chunk second in the list. */ memarea_chunk_t *new_chunk = alloc_chunk(sz+CHUNK_HEADER_SIZE, 0); |