diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-03 04:11:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-03 04:11:18 +0000 |
commit | 77bb3e054e76e9641b750db6cd6826e1c6096a9e (patch) | |
tree | f49088ebc55c53ac90cc68ddfed68e5c41312446 | |
parent | de146de0c560f23cd8da347abae2537f4e4abd30 (diff) | |
download | tor-77bb3e054e76e9641b750db6cd6826e1c6096a9e.tar tor-77bb3e054e76e9641b750db6cd6826e1c6096a9e.tar.gz |
reenable part of assert_circuit_ok, leave some still disabled
svn:r1207
-rw-r--r-- | src/or/circuit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index 3809fdf71..395550517 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -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); } } |