From 75b45bcd4d314fed0a4e047e146671bd33e20c85 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 31 Jan 2005 00:26:09 +0000 Subject: stop the infinite loop of freeing the same connection_t over and over when it's not linked into the connection_array svn:r3474 --- src/or/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/or/main.c b/src/or/main.c index d47f0c762..edcc0a8dc 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -189,8 +189,8 @@ static void connection_unlink(connection_t *conn, int remove) { 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); } -- cgit v1.2.3