Merge pull request #315 from shripchenko/master

fix bug in zmq::tcp_address_t::resolve_interface() where resolved interface ip overwrited by 0.0.0.0
This commit is contained in:
Ian Barber 2012-04-18 04:10:29 -07:00
commit 36e9c4ac84

View File

@ -252,8 +252,6 @@ int zmq::tcp_address_t::resolve_interface (const char *interface_,
if (rc != 0 && errno != ENODEV)
return rc;
if (rc == 0) {
zmq_assert (out_addrlen <= sizeof address);
memcpy (&address, out_addr, out_addrlen);
return 0;
}