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:
Olaf Mandel 2014-06-10 14:45:04 +02:00
parent 668b2c4d83
commit ab5775fb00

View File

@ -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;