0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-01 02:27:49 +08:00

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

fix a typo - assigment was used instead of comparison
This commit is contained in:
Constantin Rack 2017-04-09 10:58:59 +02:00 committed by GitHub
commit 63e1984aa7

View File

@ -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);
}