mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-20 22:31:34 +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:
parent
668b2c4d83
commit
ab5775fb00
@ -245,7 +245,7 @@ int zmq::wsa_error_to_errno (int errcode)
|
||||
return EAGAIN;
|
||||
// 10038 - Socket operation on non-socket.
|
||||
case WSAENOTSOCK:
|
||||
return EFAULT;
|
||||
return ENOTSOCK;
|
||||
// 10039 - Destination address required.
|
||||
case WSAEDESTADDRREQ:
|
||||
return EFAULT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user