diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-15 13:06:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-15 13:06:54 -0400 |
commit | 87f18c9578323cbb9229aba9a271bc7a6362a07a (patch) | |
tree | fa5333fcca5208d8dc8848bbe2cdec1d8e65300b /src/or | |
parent | 4e3373f7fe24c281b88c9a139854afa1c213d163 (diff) | |
download | tor-87f18c9578323cbb9229aba9a271bc7a6362a07a.tar tor-87f18c9578323cbb9229aba9a271bc7a6362a07a.tar.gz |
Never queue a cell on a marked circuit
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/relay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index e740fbf59..6d51f18a3 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -2272,6 +2272,9 @@ append_cell_to_circuit_queue(circuit_t *circ, or_connection_t *orconn, { cell_queue_t *queue; int streams_blocked; + if (circ->marked_for_close) + return; + if (direction == CELL_DIRECTION_OUT) { queue = &circ->n_conn_cells; streams_blocked = circ->streams_blocked_on_n_conn; |