Commit 63e1984a authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2513 from lytboris/windows-assign-instead-compare

fix a typo - assigment was used instead of comparison
parents 6a41f278 2b1bbf16
......@@ -466,7 +466,7 @@ int zmq::tcp_address_t::resolve_interface (const char *interface_, bool ipv6_, b
#if defined ZMQ_HAVE_WINDOWS
// Resolve specific case on Windows platform when using IPv4 address
// with ZMQ_IPv6 socket option.
if ((req.ai_family = AF_INET6) && (rc == WSAHOST_NOT_FOUND)) {
if ((req.ai_family == AF_INET6) && (rc == WSAHOST_NOT_FOUND)) {
req.ai_family = AF_INET;
rc = getaddrinfo(interface_, NULL, &req, &res);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment