aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-08-02 16:08:50 -0400
committerDavid Goulet <dgoulet@torproject.org>2022-08-02 16:08:50 -0400
commite69cf2340be05aaaa2d4df4085f236742696bf86 (patch)
tree04a01d4d2a4ad320eedea1c9d6c812fc7e6de26e /src
parente618a7e4456ae6a1bcb96d8d5f2c972796dd515a (diff)
parent0c984e0ec25ddb6245dc36080565500aa1a62be6 (diff)
downloadtor-e69cf2340be05aaaa2d4df4085f236742696bf86.tar.gz
tor-e69cf2340be05aaaa2d4df4085f236742696bf86.zip
Merge branch 'maint-0.4.5' into maint-0.4.6
Diffstat (limited to 'src')
-rw-r--r--src/core/or/connection_or.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/or/connection_or.c b/src/core/or/connection_or.c
index dd31638eb3..6d9f1c7572 100644
--- a/src/core/or/connection_or.c
+++ b/src/core/or/connection_or.c
@@ -805,6 +805,10 @@ connection_or_about_to_close(or_connection_t *or_conn)
} else if (!tor_digest_is_zero(or_conn->identity_digest)) {
connection_or_event_status(or_conn, OR_CONN_EVENT_CLOSED,
tls_error_to_orconn_end_reason(or_conn->tls_error));
+ } else {
+ /* Normal close, we notify of a done connection. */
+ connection_or_event_status(or_conn, OR_CONN_EVENT_CLOSED,
+ END_OR_CONN_REASON_DONE);
}
}