diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-09 21:33:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-09 21:33:49 +0000 |
commit | 32506ad2827b45bb960cf252aa0d08c426801010 (patch) | |
tree | b33d7fb390166c9895d8fdb10ef211f2cec641ce /src/or/circuitlist.c | |
parent | 98e5d10761b71d53590f4f13ccfd926f67262f72 (diff) | |
download | tor-32506ad2827b45bb960cf252aa0d08c426801010.tar.gz tor-32506ad2827b45bb960cf252aa0d08c426801010.zip |
svn:r9930
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 18bb93d4ec..7de520c41b 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -158,9 +158,11 @@ circuit_set_p_circid_orconn(or_circuit_t *circ, uint16_t id, or_connection_t *conn) { int active; + int active; active = circ->p_conn_cells.n > 0; tor_assert(bool_eq(active, circ->next_active_on_p_conn)); + active = circ->p_conn_cells.n > 0; circuit_set_circid_orconn_helper(TO_CIRCUIT(circ), CELL_DIRECTION_IN, id, conn, active); @@ -177,9 +179,11 @@ circuit_set_n_circid_orconn(circuit_t *circ, uint16_t id, or_connection_t *conn) { int active; + int active; active = circ->n_conn_cells.n > 0; tor_assert(bool_eq(active, circ->next_active_on_n_conn)); + active = circ->n_conn_cells.n > 0; circuit_set_circid_orconn_helper(circ, CELL_DIRECTION_OUT, id, conn, active); @@ -410,6 +414,8 @@ circuit_free(circuit_t *circ) other->rend_splice = NULL; } + cell_queue_clear(ô->p_conn_cells); + tor_free(circ->onionskin); /* remove from map. */ @@ -420,6 +426,8 @@ circuit_free(circuit_t *circ) cell_queue_clear(ô->p_conn_cells); } + cell_queue_clear(&circ->n_conn_cells); + /* Remove from map. */ circuit_set_n_circid_orconn(circ, 0, NULL); |