summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2018-01-15 16:41:47 -0500
committerRoger Dingledine <arma@torproject.org>2018-01-15 16:41:47 -0500
commit7ce335c9217f36b1aca6973d119630c7b846c1ce (patch)
tree18f7d379e70aa3fbad569fb9669ffa80a35f3f6f /src
parentdb5aa54a422cd45b690293a0c618e6275e1c3608 (diff)
downloadtor-7ce335c9217f36b1aca6973d119630c7b846c1ce.tar.gz
tor-7ce335c9217f36b1aca6973d119630c7b846c1ce.zip
v3 onion services now obey MAX_REND_FAILURES
New-style (v3) onion services now obey the "max rendezvous circuit attempts" logic. Previously they would make as many rendezvous circuit attempts as they could fit in the MAX_REND_TIMEOUT second window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
Diffstat (limited to 'src')
-rw-r--r--src/or/hs_circuit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hs_circuit.c b/src/or/hs_circuit.c
index a58166ccde..11ce2a1887 100644
--- a/src/or/hs_circuit.c
+++ b/src/or/hs_circuit.c
@@ -545,7 +545,7 @@ retry_service_rendezvous_point(const origin_circuit_t *circ)
/* Transfer build state information to the new circuit state in part to
* catch any other failures. */
- new_circ->build_state->failure_count = bstate->failure_count++;
+ new_circ->build_state->failure_count = bstate->failure_count+1;
new_circ->build_state->expiry_time = bstate->expiry_time;
new_circ->hs_ident = hs_ident_circuit_dup(circ->hs_ident);