summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socket_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index 0dae1b2..e3b956a 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -159,7 +159,7 @@ int zmq::socket_base_t::check_protocol (const std::string &protocol_)
// IPC transport is not available on Windows and OpenVMS.
#if defined ZMQ_HAVE_WINDOWS || defined ZMQ_HAVE_OPENVMS
- if (protocol_ != "ipc") {
+ if (protocol_ == "ipc") {
// Unknown protocol.
errno = EPROTONOSUPPORT;
return -1;