]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a seg fault when you try to launch a circ
authorRoger Dingledine <arma@torproject.org>
Sat, 3 Jul 2004 01:45:13 +0000 (01:45 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 3 Jul 2004 01:45:13 +0000 (01:45 +0000)
svn:r2002

src/or/circuitlist.c

index 3090e78b372a077dc18fa9467bd8a4f6fa86377b..8c40b53eca077c49ac0da85f6a1f946cac7a2290 100644 (file)
@@ -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)