소스 검색

try to find the corrupt closeable_connection_lst entry early

svn:r3468
Roger Dingledine 20 년 전
부모
커밋
7ddeb7fae7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/main.c

+ 1 - 0
src/or/main.c

@@ -181,6 +181,7 @@ add_connection_to_closeable_list(connection_t *conn)
 {
   tor_assert(!smartlist_isin(closeable_connection_lst, conn));
   tor_assert(conn->marked_for_close);
+  tor_assert(conn->poll_index >= 0);
 
   smartlist_add(closeable_connection_lst, conn);
 }