[or-cvs] stop the infinite loop of freeing the same connection_t ove...

Roger Dingledine arma at seul.org
Mon Jan 31 00:26:11 UTC 2005


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

Modified Files:
	main.c 
Log Message:
stop the infinite loop of freeing the same connection_t over and
over when it's not linked into the connection_array


Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.433
retrieving revision 1.434
diff -u -d -r1.433 -r1.434
--- main.c	30 Jan 2005 21:47:47 -0000	1.433
+++ main.c	31 Jan 2005 00:26:09 -0000	1.434
@@ -189,8 +189,8 @@
   connection_about_to_close_connection(conn);
   if (remove) {
     connection_remove(conn);
-    smartlist_remove(closeable_connection_lst, conn);
   }
+  smartlist_remove(closeable_connection_lst, conn);
   if (conn->type == CONN_TYPE_EXIT) {
     assert_connection_edge_not_dns_pending(conn);
   }



More information about the tor-commits mailing list