ZMQII-40: wrong return code from recolve_ip_interface

This commit is contained in:
Martin Sustrik 2010-01-18 11:01:41 +01:00
parent 55944729ed
commit bddff50271

View File

@ -267,7 +267,7 @@ int zmq::resolve_ip_interface (sockaddr_in* addr_, char const *interface_)
addr_->sin_port = htons ((uint16_t) atoi (delimiter + 1));
if (!addr_->sin_port) {
errno = EINVAL;
return 0;
return -1;
}
return 0;