Commit 099fd438 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1405 from c-rack/fix-brackets

Problem: missing brackets
parents f9315e19 8a3296c1
......@@ -737,9 +737,10 @@ int zmq::socket_base_t::connect (const char *addr_)
int rc = pgm_socket_t::init_address(address.c_str(), &res, &port_number);
if (res != NULL)
pgm_freeaddrinfo (res);
if (rc != 0 || port_number == 0)
EXIT_MUTEX();
return -1;
if (rc != 0 || port_number == 0) {
EXIT_MUTEX();
return -1;
}
}
#endif
#if defined ZMQ_HAVE_TIPC
......
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