mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
reenable part of assert_circuit_ok, leave some still disabled
svn:r1207
This commit is contained in:
parent
de146de0c5
commit
77bb3e054e
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue