]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix the bob-can't-decode-relays bug
authorRoger Dingledine <arma@torproject.org>
Mon, 5 Apr 2004 23:40:59 +0000 (23:40 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 5 Apr 2004 23:40:59 +0000 (23:40 +0000)
now alice can send the begin and bob can receive it.

svn:r1499

src/or/rendclient.c
src/or/rendservice.c

index af4edde2cf8752d829cab5c2b52c50d8b28dbba7..66c6363a3a411f12257efccc7febb3a776895561 100644 (file)
@@ -197,6 +197,7 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, int request
 
   /* All is well. Extend the circuit. */
   circ->purpose = CIRCUIT_PURPOSE_C_REND_JOINED;
+  hop->state = CPATH_STATE_OPEN;
   onion_append_to_cpath(&circ->cpath, hop);
   circ->build_state->pending_final_cpath = NULL; /* prevent double-free */
 
index ae6b97ca0a7cb0cbc6862eb4c065709c5d13ec29..5fc5c0eee026f477b3a3e7f7ad389b65f9e244d4 100644 (file)
@@ -581,6 +581,7 @@ rend_service_rendezvous_is_ready(circuit_t *circuit)
   }
 
   /* Append the cpath entry. */
+  hop->state = CPATH_STATE_OPEN;
   onion_append_to_cpath(&circuit->cpath, hop);
   circuit->build_state->pending_final_cpath = NULL; /* prevent double-free */