summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ip.cpp b/src/ip.cpp
index 86fa2c8..0d64e96 100644
--- a/src/ip.cpp
+++ b/src/ip.cpp
@@ -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;