From 2b1bbf1673b450d2c38107183867b640065d064f Mon Sep 17 00:00:00 2001 From: Boris Lytochkin Date: Sun, 9 Apr 2017 11:37:22 +0300 Subject: [PATCH] fix a typo - assigment was used instead of comparison --- src/tcp_address.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcp_address.cpp b/src/tcp_address.cpp index 5ccb1178..a5301277 100644 --- a/src/tcp_address.cpp +++ b/src/tcp_address.cpp @@ -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); }