From: Sebastian Hahn Date: Tue, 3 Aug 2010 11:57:13 +0000 (+0200) Subject: Handle EHOSTUNREACH in errno_to_stream_end_reason() X-Git-Tag: tor-0.2.2.15-alpha~19^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8aa14a39b2f96edad8ca0b5a9ea5be218837ce0;p=thirdparty%2Ftor.git 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. --- 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;