summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2010-01-18 11:01:41 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2010-01-18 11:01:41 +0100
commitbddff50271b7c4c15c34d7a0aa1c04f3e3e3c107 (patch)
treef5f22b50a7e9827683199d628c431ced5df09720
parent55944729ed5527692b1ead17af553aa32c316781 (diff)
ZMQII-40: wrong return code from recolve_ip_interface
-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;