From ab5775fb0045eb537074e8dbf0d44ab3c8c6b480 Mon Sep 17 00:00:00 2001 From: Olaf Mandel Date: Tue, 10 Jun 2014 14:45:04 +0200 Subject: [PATCH] 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. --- src/err.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/err.cpp b/src/err.cpp index fee0f678..86928c79 100644 --- a/src/err.cpp +++ b/src/err.cpp @@ -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;