Index: net/socket/tcp_client_socket_win.cc |
=================================================================== |
--- net/socket/tcp_client_socket_win.cc (revision 63512) |
+++ net/socket/tcp_client_socket_win.cc (working copy) |
@@ -64,8 +64,6 @@ |
// There are numerous Winsock error codes, but these are the ones we thus far |
// find interesting. |
switch (os_error) { |
- // connect fails with WSAEACCES when Windows Firewall blocks the |
- // connection. |
case WSAEACCES: |
return ERR_ACCESS_DENIED; |
case WSAENETDOWN: |
@@ -104,6 +102,10 @@ |
int MapConnectError(int os_error) { |
switch (os_error) { |
+ // connect fails with WSAEACCES when Windows Firewall blocks the |
+ // connection. |
+ case WSAEACCES: |
+ return ERR_NETWORK_ACCESS_DENIED; |
case WSAETIMEDOUT: |
return ERR_CONNECTION_TIMED_OUT; |
default: { |