From fba90af8a7cc4a790cc9c77b6313fc253b51c36c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 30 Aug 2010 12:10:40 +0200 Subject: Issue 54 - socket_base.cpp:162 comparison error --- src/socket_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3