diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-10-28 18:02:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-28 18:02:57 -0400 |
commit | 212c3acd42285b77ae8197a185cbb00fea2c8926 (patch) | |
tree | 6261c93809ea3c63f8063da7463875f286a41c3b /src/or/command.c | |
parent | a2517fa77c066e34d58fd50f930529b84e30946e (diff) | |
parent | cf8bffa35901a26ae840dcd715dd2f664259efb3 (diff) | |
download | tor-212c3acd42285b77ae8197a185cbb00fea2c8926.tar.gz tor-212c3acd42285b77ae8197a185cbb00fea2c8926.zip |
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts:
src/or/command.c
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/command.c b/src/or/command.c index d35e2a9c80..43d304e07b 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -148,6 +148,9 @@ command_process_cell(cell_t *cell, or_connection_t *conn) #define PROCESS_CELL(tp, cl, cn) command_process_ ## tp ## _cell(cl, cn) #endif + if (conn->_base.marked_for_close) + return; + /* Reject all but VERSIONS and NETINFO when handshaking. */ /* (VERSIONS should actually be impossible; it's variable-length.) */ if (handshaking && cell->command != CELL_VERSIONS && @@ -230,6 +233,9 @@ command_process_var_cell(var_cell_t *cell, or_connection_t *conn) } #endif + if (conn->_base.marked_for_close) + return; + switch (conn->_base.state) { case OR_CONN_STATE_OR_HANDSHAKING_V2: |