Commit a670e81e authored by Joe Eli McIlvain's avatar Joe Eli McIlvain

Merge pull request #1897 from hitstergtd/udp-errno-fix

Problem: errno not set if UDP is NOT used with ZMQ_RADIO or ZMQ_DISH
parents c2a1be5c 36237794
......@@ -324,8 +324,11 @@ int zmq::socket_base_t::check_protocol (const std::string &protocol_)
return -1;
}
if (protocol_ == "udp" && (options.type != ZMQ_DISH && options.type != ZMQ_RADIO))
if (protocol_ == "udp" && (options.type != ZMQ_DISH &&
options.type != ZMQ_RADIO)) {
errno = ENOCOMPATPROTO;
return -1;
}
// Protocol is available.
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment