浏览代码

Fix windows compilation of e0c8031516852

There is no WSAEPERM; we were implying that there was.This fixes a
bug in e0c8031516852143fb82d8fee91a0f4c576c7418, which hadn't yet
appeared in any released Tor.
Nick Mathewson 10 年之前
父节点
当前提交
d6e6eaba60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/reasons.c

+ 1 - 1
src/or/reasons.c

@@ -179,7 +179,7 @@ errno_to_stream_end_reason(int e)
     S_CASE(ENETUNREACH):
     S_CASE(EHOSTUNREACH):
     E_CASE(EACCES):
-    E_CASE(EPERM):
+    case EPERM:
       return END_STREAM_REASON_NOROUTE;
     S_CASE(ECONNREFUSED):
       return END_STREAM_REASON_CONNECTREFUSED;