summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-08-30 12:10:40 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-08-30 12:10:40 +0200
commitfba90af8a7cc4a790cc9c77b6313fc253b51c36c (patch)
treef3fb40bf51e6043a744a202af68092a697b60870 /src
parent68d62cfb4eb89549a3118e8e396531452b1174c3 (diff)
Issue 54 - socket_base.cpp:162 comparison error
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;