From e0e4b8475708729a57461bb7336931351b874842 Mon Sep 17 00:00:00 2001 From: Arturo Filastò Date: Wed, 22 Feb 2012 00:29:16 -0800 Subject: Add a check_no_tls_errors() to read_to_buf_tls Fixes bug #4528 "read_to_buf_tls(): Inconsistency in code". This check was added back in 0.1.0.3-rc, but somehow we forgot to leave it in when we refactored read_to_buf_tls in 0.1.0.5-rc. (patch by Arturo; commit message and changes file by nickm) --- src/or/buffers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or') diff --git a/src/or/buffers.c b/src/or/buffers.c index d4fc44ba9f..d60e54e87a 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -744,6 +744,9 @@ read_to_buf_tls(tor_tls_t *tls, size_t at_most, buf_t *buf) { int r = 0; size_t total_read = 0; + + check_no_tls_errors(); + check(); while (at_most > total_read) { -- cgit v1.2.3-54-g00ecf