aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-19 11:08:44 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-19 11:08:44 -0400
commitdeccd3aa6a0289afff42cb6c9ef12283908a892c (patch)
tree42d14b262322b9abf276ed6f269c32c7c4fc33f7 /src
parent60adebc4996797de4c179f489d840af9feff60e2 (diff)
parent2e5519da7cf4fb305d040fc07289b827a4d423a9 (diff)
downloadtor-deccd3aa6a0289afff42cb6c9ef12283908a892c.tar.gz
tor-deccd3aa6a0289afff42cb6c9ef12283908a892c.zip
Merge remote-tracking branch 'tor-github/pr/1225'
Diffstat (limited to 'src')
-rw-r--r--src/feature/rend/rendmid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/rend/rendmid.c b/src/feature/rend/rendmid.c
index 192da166ee..ef2a44c40d 100644
--- a/src/feature/rend/rendmid.c
+++ b/src/feature/rend/rendmid.c
@@ -117,6 +117,8 @@ rend_mid_establish_intro_legacy(or_circuit_t *circ, const uint8_t *request,
/* Now, set up this circuit. */
circuit_change_purpose(TO_CIRCUIT(circ), CIRCUIT_PURPOSE_INTRO_POINT);
hs_circuitmap_register_intro_circ_v2_relay_side(circ, (uint8_t *)pk_digest);
+ token_bucket_ctr_init(&circ->introduce2_bucket, hs_dos_get_intro2_rate(),
+ hs_dos_get_intro2_burst(), (uint32_t) approx_time());
log_info(LD_REND,
"Established introduction point on circuit %u for service %s",