aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-02-28 19:14:11 +0000
committerNick Mathewson <nickm@torproject.org>2004-02-28 19:14:11 +0000
commitf039eca6581cc92a8c4b69ff6c413517cebb4aab (patch)
tree365e6ea7268e033783d1a5416b95f4c58394fd72 /src/or/buffers.c
parent80410fa8dc1db2421c1b0b116ced2e52ecd8b705 (diff)
downloadtor-f039eca6581cc92a8c4b69ff6c413517cebb4aab.tar
tor-f039eca6581cc92a8c4b69ff6c413517cebb4aab.tar.gz
Stop trying to flush on broken sockets marked for close.
svn:r1163
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 071edad89..40d6b04d8 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -132,6 +132,10 @@ buf_t *buf_new()
return buf_new_with_capacity(INITIAL_BUF_SIZE);
}
+void buf_clear(buf_t *buf)
+{
+ buf->datalen = 0;
+}
size_t buf_datalen(const buf_t *buf)
{