mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user