Commit e3ee55b1 authored by Luca Boccassi's avatar Luca Boccassi

Problem: missing indentation for UDP branch

Solution: fix it
parent c8f3f8a5
...@@ -902,21 +902,21 @@ int zmq::socket_base_t::connect (const char *addr_) ...@@ -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???
......
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