diff options
author | Roger Dingledine <arma@torproject.org> | 2007-07-11 03:37:45 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-07-11 03:37:45 +0000 |
commit | 9bf23e059899444bd3eafb39b910b5dd88ea69a3 (patch) | |
tree | 76522acbcddd4ca0be0ec55d06f0651920b3eb35 /src/or/circuitlist.c | |
parent | 83e8d8d9b94a9b4290aa401d6528a097d39abd36 (diff) | |
download | tor-9bf23e059899444bd3eafb39b910b5dd88ea69a3.tar.gz tor-9bf23e059899444bd3eafb39b910b5dd88ea69a3.zip |
backport candidate:
When sending destroy cells from a circuit's origin, don't include
the reason for tearing down the circuit. The spec says we didn't,
and now we actually don't. Reported by lodger. [Bugfix on 0.1.2.x]
svn:r10790
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 00f3069c92..b8de2d5b8e 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -958,9 +958,9 @@ _circuit_mark_for_close(circuit_t *circ, int reason, int line, file, line, circ->purpose); } reason = END_CIRC_REASON_NONE; - } else if (CIRCUIT_IS_ORIGIN(circ) && reason < _END_CIRC_REASON_MIN) { - /* We don't send reasons when closing circuits at the origin, but we want - * to track them anyway so we can give them to the controller. */ + } + if (CIRCUIT_IS_ORIGIN(circ)) { + /* We don't send reasons when closing circuits at the origin. */ reason = END_CIRC_REASON_NONE; } |