diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-03 01:45:13 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-03 01:45:13 +0000 |
commit | 198e5f4c1650400065d8ba0a800f985bf3cbb03b (patch) | |
tree | cb943a15929f59b1e9d28c5c20dc3a30f020b0bb /src | |
parent | dc0a36d27ba384a67c8cbe20095b69a5913a473a (diff) | |
download | tor-198e5f4c1650400065d8ba0a800f985bf3cbb03b.tar tor-198e5f4c1650400065d8ba0a800f985bf3cbb03b.tar.gz |
fix a seg fault when you try to launch a circ
svn:r2002
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuitlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 3090e78b3..8c40b53ec 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -452,10 +452,10 @@ void assert_circuit_ok(const circuit_t *c) tor_assert(c->purpose >= _CIRCUIT_PURPOSE_MIN && c->purpose <= _CIRCUIT_PURPOSE_MAX); - if (c->n_conn) + if (c->n_conn) { tor_assert(c->n_conn->type == CONN_TYPE_OR); - /* XXX008 have to memcpy id_digest when we attach n_conn */ tor_assert(!memcmp(c->n_conn->identity_digest, c->n_conn_id_digest, DIGEST_LEN)); + } if (c->p_conn) tor_assert(c->p_conn->type == CONN_TYPE_OR); for (conn = c->p_streams; conn; conn = conn->next_stream) |