From: Roger Dingledine Date: Mon, 31 Jan 2005 00:26:09 +0000 (+0000) Subject: stop the infinite loop of freeing the same connection_t over and X-Git-Tag: tor-0.1.0.1-rc~366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75b45bcd4d314fed0a4e047e146671bd33e20c85;p=thirdparty%2Ftor.git stop the infinite loop of freeing the same connection_t over and over when it's not linked into the connection_array svn:r3474 --- diff --git a/src/or/main.c b/src/or/main.c index d47f0c762a..edcc0a8dc2 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); }