]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix windows compilation of e0c8031516852
authorNick Mathewson <nickm@torproject.org>
Wed, 12 Feb 2014 14:16:22 +0000 (09:16 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 12 Feb 2014 14:16:22 +0000 (09:16 -0500)
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.

src/or/reasons.c

index 6eb2643a8a80d63a2ce0954819aaf18babe06d72..0674474e72729f62aefd879f83809e36bbcfbb36 100644 (file)
@@ -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;