[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Check magic when removing old connection from map.



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv11119/src/or

Modified Files:
	circuitlist.c 
Log Message:
Check magic when removing old connection from map.

Index: circuitlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuitlist.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- circuitlist.c	3 Dec 2005 16:32:29 -0000	1.80
+++ circuitlist.c	5 Dec 2005 19:01:34 -0000	1.81
@@ -104,6 +104,7 @@
   }
 
   if (old_conn) { /* we may need to remove it from the conn-circid map */
+    tor_assert(old_conn->magic == CONNECTION_MAGIC);
     search.circ_id = old_id;
     search.or_conn = old_conn;
     found = HT_REMOVE(orconn_circid_map, &orconn_circid_circuit_map, &search);