Commit ab5775fb authored by Olaf Mandel's avatar Olaf Mandel

Fix failed assertion for WSAENOTSOCK

In de9eef30, the error number assigned to WSAENOTSOCK was EFAULT, but
zmq.cpp:919 expects an ENOTSOCK in this case.
parent 668b2c4d
...@@ -245,7 +245,7 @@ int zmq::wsa_error_to_errno (int errcode) ...@@ -245,7 +245,7 @@ int zmq::wsa_error_to_errno (int errcode)
return EAGAIN; return EAGAIN;
// 10038 - Socket operation on non-socket. // 10038 - Socket operation on non-socket.
case WSAENOTSOCK: case WSAENOTSOCK:
return EFAULT; return ENOTSOCK;
// 10039 - Destination address required. // 10039 - Destination address required.
case WSAEDESTADDRREQ: case WSAEDESTADDRREQ:
return EFAULT; return EFAULT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment