mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 19:13:35 +01:00
ZMQII-40: wrong return code from recolve_ip_interface
This commit is contained in:
parent
55944729ed
commit
bddff50271
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user