Issue 54 - socket_base.cpp:162 comparison error

This commit is contained in:
Martin Sustrik 2010-08-30 12:10:40 +02:00
parent 68d62cfb4e
commit fba90af8a7

View File

@ -159,7 +159,7 @@ int zmq::socket_base_t::check_protocol (const std::string &protocol_)
// IPC transport is not available on Windows and OpenVMS. // IPC transport is not available on Windows and OpenVMS.
#if defined ZMQ_HAVE_WINDOWS || defined ZMQ_HAVE_OPENVMS #if defined ZMQ_HAVE_WINDOWS || defined ZMQ_HAVE_OPENVMS
if (protocol_ != "ipc") { if (protocol_ == "ipc") {
// Unknown protocol. // Unknown protocol.
errno = EPROTONOSUPPORT; errno = EPROTONOSUPPORT;
return -1; return -1;