summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/buffers.c')
-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 98dafb76b6..5a0ce6f47d 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -669,6 +669,7 @@ write_to_buf(const char *string, size_t string_len, buf_t *buf)
tor_assert(_buf_end(buf) == buf->mem);
memcpy(buf->mem, string+string_len, len2);
buf->datalen += len2;
+ buf_total_used += len2;
}
if (buf->datalen > buf->highwater)
buf->highwater = buf->datalen;