aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-09-10 14:40:40 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-10-08 17:02:47 -0400
commitf50de3a91872014f03856cf4c889f029ec5a1892 (patch)
tree81f6641acf53be8d639071e598f54a257b6aeaa0 /src/test
parent1f60337da4bc1b813489482d9001285e9b104d3d (diff)
downloadtor-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.c1
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);