[or-cvs] fix a bug that"s been lurking since 27 may 03 (!)

Roger Dingledine arma at seul.org
Mon Apr 26 03:42:43 UTC 2004


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

Modified Files:
	circuit.c 
Log Message:
fix a bug that's been lurking since 27 may 03 (!)
when passing back a destroy cell, we would use the wrong circ id.
how the heck did this work?


Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.219
retrieving revision 1.220
diff -u -d -r1.219 -r1.220
--- circuit.c	25 Apr 2004 20:37:37 -0000	1.219
+++ circuit.c	26 Apr 2004 03:42:41 -0000	1.220
@@ -1015,7 +1015,7 @@
     connection_edge_destroy(circ->n_circ_id, conn);
   }
   if(circ->p_conn)
-    connection_send_destroy(circ->n_circ_id, circ->p_conn);
+    connection_send_destroy(circ->p_circ_id, circ->p_conn);
   for(conn=circ->p_streams; conn; conn=conn->next_stream) {
     connection_edge_destroy(circ->p_circ_id, conn);
   }



More information about the tor-commits mailing list