tor

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

commit 967efc0d28ffdedfb52640456e4483dd2ee63e05
parent 0906dde9d5ac409caf9f70ea7ec00efc42ec27ca
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed,  5 Dec 2018 10:23:28 -0500

Merge remote-tracking branch 'tor-github/pr/546' into maint-0.3.5

Diffstat:
Achanges/bug28619 | 6++++++
Msrc/feature/hs/hs_service.c | 6++++--
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/changes/bug28619 b/changes/bug28619 @@ -0,0 +1,6 @@ + o Minor bugfixes (hidden service v3): + - When deleting an ephemeral onion service (DEL_ONION), do not close any + rendezvous circuits in order to let the existing client connections + finish by themselves or closed by the application. The HS v2 is doing + that already so now we have the same behavior for all versions. Fixes + bug 28619; bugfix on 0.3.3.1-alpha. diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c @@ -3627,8 +3627,10 @@ hs_service_del_ephemeral(const char *address) goto err; } - /* Close circuits, remove from map and finally free. */ - close_service_circuits(service); + /* Close introduction circuits, remove from map and finally free. Notice + * that the rendezvous circuits aren't closed in order for any existing + * connections to finish. We let the application terminate them. */ + close_service_intro_circuits(service); remove_service(hs_service_map, service); hs_service_free(service);