mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Merge pull request #1897 from hitstergtd/udp-errno-fix
Problem: errno not set if UDP is NOT used with ZMQ_RADIO or ZMQ_DISH
This commit is contained in:
commit
a670e81e73
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user