diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-08-03 13:57:13 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-08-03 14:03:36 +0200 |
commit | b8aa14a39b2f96edad8ca0b5a9ea5be218837ce0 (patch) | |
tree | 12d4ada347c52099a95a8e423616a09caf048a4b | |
parent | b958eae573fd1e2817df628e29d937e2683630ea (diff) | |
download | tor-b8aa14a39b2f96edad8ca0b5a9ea5be218837ce0.tar.gz tor-b8aa14a39b2f96edad8ca0b5a9ea5be218837ce0.zip |
Handle EHOSTUNREACH in errno_to_stream_end_reason()
We used to not recognize it and returned END_STREAM_REASON_MISC.
Instead, return END_STREAM_REASON_INTERNAL.
-rw-r--r-- | changes/misc-reason | 3 | ||||
-rw-r--r-- | src/or/reasons.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/changes/misc-reason b/changes/misc-reason new file mode 100644 index 0000000000..2559fe6341 --- /dev/null +++ b/changes/misc-reason @@ -0,0 +1,3 @@ + o Minor bugfixes: + - Exit nodes didn't recognize EHOSTUNREACH as a stream ending reason + and sent back misc. Bugfix on 0.1.0.1-rc; fixes bug 1793. diff --git a/src/or/reasons.c b/src/or/reasons.c index 45b592367c..27abb790df 100644 --- a/src/or/reasons.c +++ b/src/or/reasons.c @@ -161,6 +161,7 @@ errno_to_stream_end_reason(int e) E_CASE(EACCES): S_CASE(ENOTCONN): S_CASE(ENETUNREACH): + E_CASE(EHOSTUNREACH): return END_STREAM_REASON_INTERNAL; S_CASE(ECONNREFUSED): return END_STREAM_REASON_CONNECTREFUSED; |