r13734@catbus: nickm | 2007-07-12 12:50:39 -0400

Backport r10790: omit reasons from destroy cells from the circuit origin.


svn:r10814
This commit is contained in:
Nick Mathewson
2007-07-12 16:50:41 +00:00
parent c09f015b55
commit d52051da48
3 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -884,9 +884,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;
}