mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
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.
This commit is contained in:
parent
b958eae573
commit
b8aa14a39b
3
changes/misc-reason
Normal file
3
changes/misc-reason
Normal file
@ -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.
|
@ -161,6 +161,7 @@ errno_to_stream_end_reason(int e)
|
|||||||
E_CASE(EACCES):
|
E_CASE(EACCES):
|
||||||
S_CASE(ENOTCONN):
|
S_CASE(ENOTCONN):
|
||||||
S_CASE(ENETUNREACH):
|
S_CASE(ENETUNREACH):
|
||||||
|
E_CASE(EHOSTUNREACH):
|
||||||
return END_STREAM_REASON_INTERNAL;
|
return END_STREAM_REASON_INTERNAL;
|
||||||
S_CASE(ECONNREFUSED):
|
S_CASE(ECONNREFUSED):
|
||||||
return END_STREAM_REASON_CONNECTREFUSED;
|
return END_STREAM_REASON_CONNECTREFUSED;
|
||||||
|
Loading…
Reference in New Issue
Block a user