Browse Source

make EACCES survivable too.

Nick Mathewson 10 years ago
parent
commit
e0c8031516
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/reasons.c

+ 2 - 1
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):
       return END_STREAM_REASON_INTERNAL;
     S_CASE(ENETUNREACH):
     S_CASE(EHOSTUNREACH):
+    E_CASE(EACCES):
+    E_CASE(EPERM):
       return END_STREAM_REASON_NOROUTE;
     S_CASE(ECONNREFUSED):
       return END_STREAM_REASON_CONNECTREFUSED;