diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-31 23:35:50 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-31 23:35:50 +0000 |
commit | 9e13a6f31c144fc6ca06d8eceac0d91522c57274 (patch) | |
tree | efb52ab8037da56af35083eab81491d8631944ad /src/or/circuitlist.c | |
parent | b07bd7214b57c1ada733a4dc447d563537168db9 (diff) | |
download | tor-9e13a6f31c144fc6ca06d8eceac0d91522c57274.tar.gz tor-9e13a6f31c144fc6ca06d8eceac0d91522c57274.zip |
r9457@Kushana: nickm | 2006-10-31 18:35:17 -0500
Do not warn when an OR gives us a new circuit end reason. (This will prevent bug 351 from recurring.)
svn:r8887
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 78fcbb3df9..0104886d4e 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -849,12 +849,13 @@ _circuit_mark_for_close(circuit_t *circ, int reason, int line, reason = END_CIRC_REASON_NONE; } - if (reason & END_CIRC_REASON_FLAG_REMOTE) + if (reason & END_CIRC_REASON_FLAG_REMOTE) { reason &= ~END_CIRC_REASON_FLAG_REMOTE; if (reason < _END_CIRC_REASON_MIN || reason > _END_CIRC_REASON_MAX) { - log_warn(LD_BUG, "Reason %d out of range at %s:%d", reason, file, line); - orig_reason = reason = END_CIRC_REASON_NONE; + if (!(orig_reason & END_CIRC_REASON_FLAG_REMOTE)) + log_warn(LD_BUG, "Reason %d out of range at %s:%d", reason, file, line); + reason = END_CIRC_REASON_NONE; } if (circ->state == CIRCUIT_STATE_ONIONSKIN_PENDING) { |