aboutsummaryrefslogtreecommitdiff
path: root/src/or/reasons.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2014-02-25 15:05:06 -0500
committerRoger Dingledine <arma@torproject.org>2014-02-25 15:05:06 -0500
commit4ef52cc16759eb75523b9694d75d051c01ba994c (patch)
tree62edc6c3274f0e2a14f278cdeb8f7252eb246f03 /src/or/reasons.c
parent4428a14616c1a97430f9dab5419f2426f97c8883 (diff)
parentd7950eda2bfd927a18df4a2620952d10dda1705c (diff)
downloadtor-4ef52cc16759eb75523b9694d75d051c01ba994c.tar.gz
tor-4ef52cc16759eb75523b9694d75d051c01ba994c.zip
Merge branch 'maint-0.2.4' into release-0.2.4
Diffstat (limited to 'src/or/reasons.c')
-rw-r--r--src/or/reasons.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/reasons.c b/src/or/reasons.c
index 637f8cdc7d..0674474e72 100644
--- a/src/or/reasons.c
+++ b/src/or/reasons.c
@@ -174,11 +174,12 @@ errno_to_stream_end_reason(int e)
S_CASE(ENOTSOCK):
S_CASE(EPROTONOSUPPORT):
S_CASE(EAFNOSUPPORT):
- E_CASE(EACCES):
S_CASE(ENOTCONN):
- S_CASE(ENETUNREACH):
return END_STREAM_REASON_INTERNAL;
+ S_CASE(ENETUNREACH):
S_CASE(EHOSTUNREACH):
+ E_CASE(EACCES):
+ case EPERM:
return END_STREAM_REASON_NOROUTE;
S_CASE(ECONNREFUSED):
return END_STREAM_REASON_CONNECTREFUSED;