tor

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

commit c359c3056b2dbf17987a8955af30884ee438108e
parent 59bbf8cde9144ee5c8d060959e723a4bedfd6bb8
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 24 Mar 2021 12:25:05 -0400

Merge branch 'maint-0.4.4' into maint-0.4.5

Diffstat:
Achanges/ticket40345 | 5+++++
Msrc/core/or/channel.c | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/changes/ticket40345 b/changes/ticket40345 @@ -0,0 +1,5 @@ + o Minor bugfixes (channel, DoS): + - Fix a possible non fatal assertion BUG() due to a too early free of a + string when noting down the client connection for the DoS defenses + subsystem. Fixes bug 40345; bugfix on 0.4.3.4-rc + diff --git a/src/core/or/channel.c b/src/core/or/channel.c @@ -1882,11 +1882,11 @@ channel_do_open_actions(channel_t *chan) geoip_note_client_seen(GEOIP_CLIENT_CONNECT, &remote_addr, transport_name, now); - tor_free(transport_name); /* Notify the DoS subsystem of a new client. */ if (tlschan && tlschan->conn) { dos_new_client_conn(tlschan->conn, transport_name); } + tor_free(transport_name); } /* Otherwise the underlying transport can't tell us this, so skip it */ }