[or-cvs] fix the bob-can"t-decode-relays bug

Roger Dingledine arma at seul.org
Mon Apr 5 23:41:01 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	rendclient.c rendservice.c 
Log Message:
fix the bob-can't-decode-relays bug

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


Index: rendclient.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendclient.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- rendclient.c	5 Apr 2004 22:01:35 -0000	1.18
+++ rendclient.c	5 Apr 2004 23:40:59 -0000	1.19
@@ -197,6 +197,7 @@
 
   /* 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: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- rendservice.c	5 Apr 2004 21:39:47 -0000	1.29
+++ rendservice.c	5 Apr 2004 23:40:59 -0000	1.30
@@ -581,6 +581,7 @@
   }
 
   /* 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 */
 



More information about the tor-commits mailing list