aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_or.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-08-01 10:58:40 -0400
committerDavid Goulet <dgoulet@torproject.org>2022-08-01 10:58:40 -0400
commit0c984e0ec25ddb6245dc36080565500aa1a62be6 (patch)
tree55f9e5ddffe2f97a93535e584edc03e71d7e9f9d /src/core/or/connection_or.c
parent691e542fd520edb8a1371eb42fa7b11b296616b9 (diff)
downloadtor-0c984e0ec25ddb6245dc36080565500aa1a62be6.tar.gz
tor-0c984e0ec25ddb6245dc36080565500aa1a62be6.zip
conn: Notify btrack subsys on normal OR conn close
Fixes #40604 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/connection_or.c')
-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 e3e81ed9cb..0cd3c058ec 100644
--- a/src/core/or/connection_or.c
+++ b/src/core/or/connection_or.c
@@ -799,6 +799,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);
}
}