]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make rendezvous points work again
authorRoger Dingledine <arma@torproject.org>
Wed, 14 Apr 2004 05:18:21 +0000 (05:18 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 14 Apr 2004 05:18:21 +0000 (05:18 +0000)
(yay. now time to mess them up again.)

svn:r1619

src/or/connection_edge.c
src/or/rendclient.c

index 77422df4b95ea28d4d44e4e8eb7b532fe16ccee7..dc6da9fc04bda75e62317623d93d937a05e6d6f8 100644 (file)
@@ -905,7 +905,7 @@ int connection_ap_handshake_attach_circuit(connection_t *conn) {
 
     if(retval > 0) {
       /* one is already established, attach */
-      log_fn(LOG_INFO,"rend joined circ already here. reusing.");
+      log_fn(LOG_INFO,"rend joined circ already here. attaching.");
       link_apconn_to_circ(conn, rendcirc);
       if(connection_ap_handshake_send_begin(conn, rendcirc) < 0)
         return 0; /* already marked, let them fade away */
index 1beca22476aa7540a6b92bd5a3fcd397ac83406d..d0b80a7631bbdf639650970b29b059c0d5860e04 100644 (file)
@@ -263,8 +263,9 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, int request
   crypt_path_t *hop;
   char keys[DIGEST_LEN+CPATH_KEY_MATERIAL_LEN];
 
-  if(circ->purpose != CIRCUIT_PURPOSE_C_REND_READY ||
-     !circ->build_state->pending_final_cpath) {
+  if( (circ->purpose != CIRCUIT_PURPOSE_C_REND_READY &&
+       circ->purpose != CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED)
+      || !circ->build_state->pending_final_cpath) {
     log_fn(LOG_WARN,"Got rendezvous2 cell from Bob, but not expecting it. Closing.");
     circuit_mark_for_close(circ);
     return -1;