summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-06 21:25:11 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-06 21:25:11 +0000
commitd473cf7ee93bd191d22c387cfbcf1f1db651dd8f (patch)
treec3b6d8e6e3795aea17b6eb8130fe6533880dd175 /src/or/rendservice.c
parent8b371c2aa536c30926bcf48e1ff2a756e139a08d (diff)
downloadtor-d473cf7ee93bd191d22c387cfbcf1f1db651dd8f.tar.gz
tor-d473cf7ee93bd191d22c387cfbcf1f1db651dd8f.zip
set the circ windows on the middle hop of the rend circs
svn:r1511
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 6029ad89dd..40a15aa6c4 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -593,6 +593,12 @@ rend_service_rendezvous_is_ready(circuit_t *circuit)
/* Append the cpath entry. */
hop->state = CPATH_STATE_OPEN;
+ /* set the windows to default. these are the windows
+ * that bob thinks alice has.
+ */
+ hop->package_window = CIRCWINDOW_START;
+ hop->deliver_window = CIRCWINDOW_START;
+
onion_append_to_cpath(&circuit->cpath, hop);
circuit->build_state->pending_final_cpath = NULL; /* prevent double-free */