Browse Source

Prop209: Rend circuits weren't ever marked dirty.

Mike Perry 13 years ago
parent
commit
428fbfc1d5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/or/rendservice.c

+ 4 - 0
src/or/rendservice.c

@@ -2584,6 +2584,10 @@ rend_service_rendezvous_has_opened(origin_circuit_t *circuit)
   tor_assert(!(circuit->build_state->onehop_tunnel));
 #endif
   tor_assert(circuit->rend_data);
+
+  /* Declare the circuit dirty to avoid reuse, and for path-bias */
+  circuit->base_.timestamp_dirty = time(NULL);
+
   hop = circuit->build_state->service_pending_final_cpath_ref->cpath;
 
   base16_encode(hexcookie,9,circuit->rend_data->rend_cookie,4);