]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix assert found by DreadWingKnight: now that rendezvous streams
authorRoger Dingledine <arma@torproject.org>
Sun, 30 Jul 2006 04:54:13 +0000 (04:54 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 30 Jul 2006 04:54:13 +0000 (04:54 +0000)
are attached to p_streams, the p_streams list can consist of both AP
and EXIT conns.

svn:r6945

src/or/circuitlist.c
src/or/or.h

index 47607931bc3ff7b2a24cb0d123346e3c43524327..7a8830afe63f81ca853776a6da79e741572aba87 100644 (file)
@@ -1013,9 +1013,11 @@ assert_circuit_ok(const circuit_t *c)
       tor_assert(c == circuit_get_by_circid_orconn(or_circ->p_circ_id,
                                                    or_circ->p_conn));
   }
+#if 0 /* false now that rendezvous exits are attached to p_streams */
   if (origin_circ)
     for (conn = origin_circ->p_streams; conn; conn = conn->next_stream)
       tor_assert(conn->_base.type == CONN_TYPE_AP);
+#endif
   if (or_circ)
     for (conn = or_circ->n_streams; conn; conn = conn->next_stream)
       tor_assert(conn->_base.type == CONN_TYPE_EXIT);
index 02290eb59c658fbf0133c848ce76bcf4290acc16..7e3f96eaf89486e5c308a3e21d38445a57a07204 100644 (file)
@@ -1198,7 +1198,8 @@ typedef struct circuit_t {
 typedef struct origin_circuit_t {
   circuit_t _base;
 
-  /** Linked list of AP streams associated with this circuit. */
+  /** Linked list of AP streams (or EXIT streams if hidden service)
+   * associated with this circuit. */
   edge_connection_t *p_streams;
   /** Build state for this circuit. It includes the intended path
    * length, the chosen exit router, rendezvous information, etc.