mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 16:48:08 +02:00
Problem: missing indentation for UDP branch
Solution: fix it
This commit is contained in:
@@ -902,21 +902,21 @@ int zmq::socket_base_t::connect (const char *addr_)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (protocol == "udp") {
|
if (protocol == "udp") {
|
||||||
if (options.type != ZMQ_RADIO) {
|
if (options.type != ZMQ_RADIO) {
|
||||||
errno = ENOCOMPATPROTO;
|
errno = ENOCOMPATPROTO;
|
||||||
LIBZMQ_DELETE(paddr);
|
LIBZMQ_DELETE(paddr);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
paddr->resolved.udp_addr = new (std::nothrow) udp_address_t ();
|
paddr->resolved.udp_addr = new (std::nothrow) udp_address_t ();
|
||||||
alloc_assert (paddr->resolved.udp_addr);
|
alloc_assert (paddr->resolved.udp_addr);
|
||||||
rc = paddr->resolved.udp_addr->resolve (address.c_str(), false);
|
rc = paddr->resolved.udp_addr->resolve (address.c_str(), false);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
LIBZMQ_DELETE(paddr);
|
LIBZMQ_DELETE(paddr);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// TBD - Should we check address for ZMQ_HAVE_NORM???
|
// TBD - Should we check address for ZMQ_HAVE_NORM???
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user