mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-15 03:21:11 +01:00
Initialise _has_src_addr variable, fixes hang on Windows.
This commit is contained in:
parent
f21116b7be
commit
2f08477292
@ -378,13 +378,15 @@ int zmq::tcp_address_t::resolve_hostname (const char *hostname_, bool ipv6_, boo
|
||||
return 0;
|
||||
}
|
||||
|
||||
zmq::tcp_address_t::tcp_address_t ()
|
||||
zmq::tcp_address_t::tcp_address_t () :
|
||||
_has_src_addr (false)
|
||||
{
|
||||
memset (&address, 0, sizeof (address));
|
||||
memset (&source_address, 0, sizeof (source_address));
|
||||
}
|
||||
|
||||
zmq::tcp_address_t::tcp_address_t (const sockaddr *sa, socklen_t sa_len)
|
||||
zmq::tcp_address_t::tcp_address_t (const sockaddr *sa, socklen_t sa_len) :
|
||||
_has_src_addr (false)
|
||||
{
|
||||
zmq_assert(sa && sa_len > 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user