and make sure that never happens again

svn:r5932
This commit is contained in:
Roger Dingledine 2006-02-09 02:42:33 +00:00
parent 2c221dd8db
commit 31f2705d9a

View File

@ -2089,6 +2089,7 @@ assert_connection_ok(connection_t *conn, time_t now)
case CONN_TYPE_OR:
tor_assert(conn->state >= _OR_CONN_STATE_MIN);
tor_assert(conn->state <= _OR_CONN_STATE_MAX);
tor_assert(conn->n_circuits >= 0);
break;
case CONN_TYPE_EXIT:
tor_assert(conn->state >= _EXIT_CONN_STATE_MIN);