mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge branch 'maint-0.4.5' into maint-0.4.6
This commit is contained in:
commit
e69cf2340b
5
changes/ticket40604
Normal file
5
changes/ticket40604
Normal file
@ -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.
|
@ -805,6 +805,10 @@ connection_or_about_to_close(or_connection_t *or_conn)
|
|||||||
} else if (!tor_digest_is_zero(or_conn->identity_digest)) {
|
} else if (!tor_digest_is_zero(or_conn->identity_digest)) {
|
||||||
connection_or_event_status(or_conn, OR_CONN_EVENT_CLOSED,
|
connection_or_event_status(or_conn, OR_CONN_EVENT_CLOSED,
|
||||||
tls_error_to_orconn_end_reason(or_conn->tls_error));
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user