aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-07-20 19:42:11 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-07-20 19:42:11 +0200
commit9b0d3719ae3d1e9416cffcce1267fdacfcf765e9 (patch)
tree615bb2564796673721c52b30afc44676c4017ab5
parente05ddf3e18a019b7db833448c666cbf056444d0d (diff)
downloadtor-9b0d3719ae3d1e9416cffcce1267fdacfcf765e9.tar
tor-9b0d3719ae3d1e9416cffcce1267fdacfcf765e9.tar.gz
Don't assert for listener connections
-rw-r--r--src/or/connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index d2ee1ae73..c4b320ed4 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -3939,6 +3939,9 @@ assert_connection_ok(connection_t *conn, time_t now)
case CONN_TYPE_CONTROL:
tor_assert(conn->magic == CONTROL_CONNECTION_MAGIC);
break;
+ CASE_ANY_LISTENER_TYPE:
+ tor_assert(conn->magic == LISTENER_CONNECTION_MAGIC);
+ break;
default:
tor_assert(conn->magic == BASE_CONNECTION_MAGIC);
break;