]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
try to find the corrupt closeable_connection_lst entry early
authorRoger Dingledine <arma@torproject.org>
Sun, 30 Jan 2005 20:31:08 +0000 (20:31 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 30 Jan 2005 20:31:08 +0000 (20:31 +0000)
svn:r3468

src/or/main.c

index 0cfba107c538607ff1aec7a45cdf071f1a70483e..01eaf1654c8f2d345e7172433c69521c44a2f43f 100644 (file)
@@ -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);
 }