diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-26 21:20:22 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-26 21:20:22 +0000 |
commit | ecc76d824554e310d1f93a7d930dea552be3c5fc (patch) | |
tree | 840de49cef0623ad58ea200873a7ffb60a390132 /src/or/buffers.c | |
parent | e6794e58081af773073c266e23fe3ab2ebecdb7e (diff) | |
download | tor-ecc76d824554e310d1f93a7d930dea552be3c5fc.tar.gz tor-ecc76d824554e310d1f93a7d930dea552be3c5fc.zip |
Avoid overflow on wrapping a TLS read.
svn:r4125
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 937e335927..a3d2a0354a 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -417,7 +417,7 @@ int read_to_buf_tls(tor_tls *tls, size_t at_most, buf_t *buf) { if (at_start) { int r2; tor_assert(_buf_end(buf) == buf->mem); - r2 = read_to_buf_tls_impl(tls, at_most, buf, buf->mem); + r2 = read_to_buf_tls_impl(tls, at_start, buf, buf->mem); if (r2 < 0) return r2; else |