From bddff50271b7c4c15c34d7a0aa1c04f3e3e3c107 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 18 Jan 2010 11:01:41 +0100 Subject: ZMQII-40: wrong return code from recolve_ip_interface --- src/ip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3