mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
reenable part of assert_circuit_ok, leave some still disabled
svn:r1207
This commit is contained in:
@@ -1268,15 +1268,13 @@ void assert_circuit_ok(const circuit_t *c)
|
||||
|
||||
assert(c);
|
||||
assert(c->magic == CIRCUIT_MAGIC);
|
||||
|
||||
return;
|
||||
|
||||
if (c->n_conn)
|
||||
assert(c->n_conn->type == CONN_TYPE_OR);
|
||||
if (c->p_conn)
|
||||
assert(c->p_conn->type == CONN_TYPE_OR);
|
||||
for (conn = c->p_streams; conn; conn = conn->next_stream)
|
||||
assert(c->p_conn->type == CONN_TYPE_AP);
|
||||
assert(conn->type == CONN_TYPE_AP);
|
||||
for (conn = c->n_streams; conn; conn = conn->next_stream)
|
||||
assert(conn->type == CONN_TYPE_EXIT);
|
||||
|
||||
@@ -1296,7 +1294,7 @@ void assert_circuit_ok(const circuit_t *c)
|
||||
}
|
||||
}
|
||||
if (c->cpath) {
|
||||
assert_cpath_ok(c->cpath);
|
||||
//XXX assert_cpath_ok(c->cpath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user