diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-03-12 23:31:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-03-12 23:31:16 +0000 |
commit | bd8ffccae7e1bb4030f9ca5e6dd9c8918256de75 (patch) | |
tree | 26820b373ebcbe66894a347d59b0136eb9265bbf /src/or/connection.c | |
parent | 474c60b7433da2302c35832571f41867714d8f65 (diff) | |
download | tor-bd8ffccae7e1bb4030f9ca5e6dd9c8918256de75.tar.gz tor-bd8ffccae7e1bb4030f9ca5e6dd9c8918256de75.zip |
More cleanups noticed by weasel; also, remove macros that nobody uses.
svn:r6143
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 1806f6afa1..f9e93a75e4 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -2113,6 +2113,8 @@ assert_connection_ok(connection_t *conn, time_t now) case CONN_TYPE_EXIT: tor_assert(conn->state >= _EXIT_CONN_STATE_MIN); tor_assert(conn->state <= _EXIT_CONN_STATE_MAX); + tor_assert(conn->purpose >= _EXIT_PURPOSE_MIN); + tor_assert(conn->purpose <= _EXIT_PURPOSE_MAX); break; case CONN_TYPE_AP: tor_assert(conn->state >= _AP_CONN_STATE_MIN); @@ -2126,8 +2128,8 @@ assert_connection_ok(connection_t *conn, time_t now) tor_assert(conn->purpose <= _DIR_PURPOSE_MAX); break; case CONN_TYPE_DNSWORKER: - tor_assert(conn->state == DNSWORKER_STATE_IDLE || - conn->state == DNSWORKER_STATE_BUSY); + tor_assert(conn->state >= _DNSWORKER_STATE_MIN); + tor_assert(conn->state <= _DNSWORKER_STATE_MAX); break; case CONN_TYPE_CPUWORKER: tor_assert(conn->state >= _CPUWORKER_STATE_MIN); |