mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
Fix failed assertion for WSAENOTSOCK
In de9eef306, the error number assigned to WSAENOTSOCK was EFAULT, but
zmq.cpp:919 expects an ENOTSOCK in this case.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user