diff options
author | Roger Dingledine <arma@torproject.org> | 2014-02-25 15:05:06 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2014-02-25 15:05:06 -0500 |
commit | 4ef52cc16759eb75523b9694d75d051c01ba994c (patch) | |
tree | 62edc6c3274f0e2a14f278cdeb8f7252eb246f03 /src/or/reasons.c | |
parent | 4428a14616c1a97430f9dab5419f2426f97c8883 (diff) | |
parent | d7950eda2bfd927a18df4a2620952d10dda1705c (diff) | |
download | tor-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.c | 5 |
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; |