aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-02 10:15:04 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-02 10:15:04 -0400
commit2e98e881178470201ed23ef381b0e9ede4f4f613 (patch)
treeb8368a6a497032f73eae225abc6029328febd763 /src/core/mainloop
parent20d1a1cdbd9d4a3d21e80c62027522505731189a (diff)
parent18fa53fdf4e2b35ceee54c317e989bdbc31183d5 (diff)
downloadtor-2e98e881178470201ed23ef381b0e9ede4f4f613.tar.gz
tor-2e98e881178470201ed23ef381b0e9ede4f4f613.zip
Merge branch 'maint-0.4.4'
Diffstat (limited to 'src/core/mainloop')
-rw-r--r--src/core/mainloop/connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index 3ebe18cd33..af823335a8 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -4205,6 +4205,7 @@ connection_handle_write_impl(connection_t *conn, int force)
switch (result) {
CASE_TOR_TLS_ERROR_ANY:
case TOR_TLS_CLOSE:
+ or_conn->tls_error = result;
log_info(LD_NET, result != TOR_TLS_CLOSE ?
"tls error. breaking.":"TLS connection closed on flush");
/* Don't flush; connection is dead. */