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

fix a typo - assigment was used instead of comparison

This commit is contained in:
Boris Lytochkin 2017-04-09 11:37:22 +03:00
parent 6a41f278c5
commit 2b1bbf1673

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