Selaa lähdekoodia

stop the infinite loop of freeing the same connection_t over and
over when it's not linked into the connection_array


svn:r3474

Roger Dingledine 20 vuotta sitten
vanhempi
commit
75b45bcd4d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -189,8 +189,8 @@ static void connection_unlink(connection_t *conn, int remove) {
   connection_about_to_close_connection(conn);
   connection_about_to_close_connection(conn);
   if (remove) {
   if (remove) {
     connection_remove(conn);
     connection_remove(conn);
-    smartlist_remove(closeable_connection_lst, conn);
   }
   }
+  smartlist_remove(closeable_connection_lst, conn);
   if (conn->type == CONN_TYPE_EXIT) {
   if (conn->type == CONN_TYPE_EXIT) {
     assert_connection_edge_not_dns_pending(conn);
     assert_connection_edge_not_dns_pending(conn);
   }
   }