tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 4d3f42a6f2fd0133c4ac2fbdc5c9078ca63442de
parent f51c68729fbd75cbadabb28999b3677ad58b4d69
Author: David Goulet <dgoulet@torproject.org>
Date:   Tue,  2 Aug 2022 16:08:50 -0400

Merge branch 'maint-0.4.7'

Diffstat:
Achanges/ticket40604 | 5+++++
Msrc/core/or/connection_or.c | 4++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/changes/ticket40604 b/changes/ticket40604 @@ -0,0 +1,5 @@ + o Major bugfixes (relay): + - Remove OR connections btrack subsystem entries when the connections + closes normally. Before this, we would only close it on error and thus + leaking memory for each normal OR connections. Fixes bug 40604; bugfix + on 0.4.0.1-alpha. diff --git a/src/core/or/connection_or.c b/src/core/or/connection_or.c @@ -806,6 +806,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); } }