Signed-off-by: Andrew Thompson <[email protected]>
---
 src/ip.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ip.cpp b/src/ip.cpp
index a63a97d..6493327 100644
--- a/src/ip.cpp
+++ b/src/ip.cpp
@@ -274,7 +274,7 @@ int zmq::resolve_ip_hostname (sockaddr_storage *addr_, 
socklen_t *addr_len_,
     const char *hostname_)
 {
     //  Find the ':' that separates hostname name from service.
-    const char *delimiter = strchr (hostname_, ':');
+    const char *delimiter = strrchr (hostname_, ':');
     if (!delimiter) {
         errno = EINVAL;
         return -1;
-- 
1.7.4.1

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to