diff options
author | David Goulet <dgoulet@torproject.org> | 2019-09-10 14:40:40 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-10-08 17:02:47 -0400 |
commit | f50de3a91872014f03856cf4c889f029ec5a1892 (patch) | |
tree | 81f6641acf53be8d639071e598f54a257b6aeaa0 /src/test | |
parent | 1f60337da4bc1b813489482d9001285e9b104d3d (diff) | |
download | tor-f50de3a91872014f03856cf4c889f029ec5a1892.tar.gz tor-f50de3a91872014f03856cf4c889f029ec5a1892.zip |
hs-v3: Do not remove intro point if circuit exists
When considering introduction point of a service's descriptor, do not remove
an intro point that has an established or pending circuit.
Fixes #31652
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_hs_service.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index c5854f0ff8..a2594ed6af 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -1300,6 +1300,7 @@ test_service_event(void *arg) OP_EQ, 1); /* Remove the IP object at once for the next test. */ ip->circuit_retries = MAX_INTRO_POINT_CIRCUIT_RETRIES + 1; + ip->circuit_established = 0; run_housekeeping_event(now); tt_int_op(digest256map_size(service->desc_current->intro_points.map), OP_EQ, 0); |