소스 검색

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 년 전
부모
커밋
75b45bcd4d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
   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);
   }