diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-15 22:11:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-15 22:11:21 +0000 |
commit | 11ed4500ded3270ea376d75269200bb99574026e (patch) | |
tree | e1a48e81adc4048d054415e170c407eedd5afd87 /src | |
parent | db6f0f36177469dee4a97f2d016496b1ba5d1e72 (diff) | |
download | tor-11ed4500ded3270ea376d75269200bb99574026e.tar.gz tor-11ed4500ded3270ea376d75269200bb99574026e.zip |
r11975@Kushana: nickm | 2007-01-15 17:11:15 -0500
set or_conn->tls_error to 0 on non-error to avoid looking at stale errors.
svn:r9359
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 56401768d1..8e4326c2c2 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1462,6 +1462,8 @@ connection_read_to_buf(connection_t *conn, int *max_to_read) result = read_to_buf_tls(or_conn->tls, at_most, conn->inbuf); if (TOR_TLS_IS_ERROR(result) || result == TOR_TLS_CLOSE) or_conn->tls_error = result; + else + or_conn->tls_error = 0; switch (result) { case TOR_TLS_CLOSE: |