0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00
fixes zmq_unbind failing for wildcard endpoints
This commit is contained in:
Dylan Cali 2015-06-28 23:48:59 -05:00
parent 717d69005d
commit 6369bfb78d

View File

@ -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