Browse Source

fix the bob-can't-decode-relays bug

now alice can send the begin and bob can receive it.


svn:r1499
Roger Dingledine 21 years ago
parent
commit
6e6cbaad95
2 changed files with 2 additions and 0 deletions
  1. 1 0
      src/or/rendclient.c
  2. 1 0
      src/or/rendservice.c

+ 1 - 0
src/or/rendclient.c

@@ -197,6 +197,7 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, int request
 
 
   /* All is well. Extend the circuit. */
   /* All is well. Extend the circuit. */
   circ->purpose = CIRCUIT_PURPOSE_C_REND_JOINED;
   circ->purpose = CIRCUIT_PURPOSE_C_REND_JOINED;
+  hop->state = CPATH_STATE_OPEN;
   onion_append_to_cpath(&circ->cpath, hop);
   onion_append_to_cpath(&circ->cpath, hop);
   circ->build_state->pending_final_cpath = NULL; /* prevent double-free */
   circ->build_state->pending_final_cpath = NULL; /* prevent double-free */
 
 

+ 1 - 0
src/or/rendservice.c

@@ -581,6 +581,7 @@ rend_service_rendezvous_is_ready(circuit_t *circuit)
   }
   }
 
 
   /* Append the cpath entry. */
   /* Append the cpath entry. */
+  hop->state = CPATH_STATE_OPEN;
   onion_append_to_cpath(&circuit->cpath, hop);
   onion_append_to_cpath(&circuit->cpath, hop);
   circuit->build_state->pending_final_cpath = NULL; /* prevent double-free */
   circuit->build_state->pending_final_cpath = NULL; /* prevent double-free */