add conn->requested_resource to connection_t checks.

svn:r4951
This commit is contained in:
Nick Mathewson 2005-09-08 21:21:54 +00:00
parent a938190bdb
commit 4ce0e01848

View File

@ -1952,6 +1952,9 @@ assert_connection_ok(connection_t *conn, time_t now)
} else if (conn->type != CONN_TYPE_DIR) {
tor_assert(!conn->purpose); /* only used for dir types currently */
}
if (conn->type != CONN_TYPE_DIR) {
tor_assert(!conn->requested_resource);
}
switch (conn->type)
{