aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-30 20:31:08 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-30 20:31:08 +0000
commit7ddeb7fae7fee61a31e189964f81f0991663a0dd (patch)
treeefd155536f21b4ab54adfe4b02d6aa4720dc9f06 /src/or/main.c
parent03dd466e5b9bcf04bcbb058855942c6f2bf0d79c (diff)
downloadtor-7ddeb7fae7fee61a31e189964f81f0991663a0dd.tar.gz
tor-7ddeb7fae7fee61a31e189964f81f0991663a0dd.zip
try to find the corrupt closeable_connection_lst entry early
svn:r3468
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 0cfba107c5..01eaf1654c 100644
--- a/src/or/main.c
+++ b/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);
}