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 /src/or/reasons.c | |
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.
Diffstat (limited to 'src/or/reasons.c')
-rw-r--r-- | src/or/reasons.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |