diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-09 02:42:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-09 02:42:33 +0000 |
commit | 31f2705d9a8f2ddca67137ca0129d5ba949f953c (patch) | |
tree | 0ea1ccd829b410d3d33431ece0f70342cb61388d | |
parent | 2c221dd8db997e822c003f8c532488df4c35746a (diff) | |
download | tor-31f2705d9a8f2ddca67137ca0129d5ba949f953c.tar.gz tor-31f2705d9a8f2ddca67137ca0129d5ba949f953c.zip |
and make sure that never happens again
svn:r5932
-rw-r--r-- | src/or/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 1e1320cea7..ecdb4dbeb3 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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); |