From 6369bfb78d764a035093210f4752a6a96fe66334 Mon Sep 17 00:00:00 2001 From: Dylan Cali Date: Sun, 28 Jun 2015 23:48:59 -0500 Subject: [PATCH] backport zeromq/libzmq@09e7416 fixes zmq_unbind failing for wildcard endpoints --- src/socket_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket_base.cpp b/src/socket_base.cpp index c425e93f..a8c15660 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -364,7 +364,7 @@ int zmq::socket_base_t::bind (const char *addr_) // Save last endpoint URI listener->get_address (options.last_endpoint); - add_endpoint (addr_, (own_t *) listener); + add_endpoint (options.last_endpoint.c_str (), (own_t *) listener); return 0; } @@ -383,7 +383,7 @@ int zmq::socket_base_t::bind (const char *addr_) // Save last endpoint URI listener->get_address (options.last_endpoint); - add_endpoint (addr_, (own_t *) listener); + add_endpoint (options.last_endpoint.c_str (), (own_t *) listener); return 0; } #endif