diff --git a/ACE/ace/Sock_Connect.cpp b/ACE/ace/Sock_Connect.cpp index 26118d5629fc0..2fb0da0ffa127 100644 --- a/ACE/ace/Sock_Connect.cpp +++ b/ACE/ace/Sock_Connect.cpp @@ -1474,7 +1474,7 @@ ip_check (int &ipvn_enabled, int pf) #if defined (ACE_WIN32) static int recursing = 0; - if (recursing) return recursing; + if (recursing) return 1; // as of the release of Windows 2008, even hosts that have IPv6 interfaces disabled // will still permit the creation of a PF_INET6 socket, thus rendering the socket @@ -1496,7 +1496,7 @@ ip_check (int &ipvn_enabled, int pf) delete [] if_addrs; // If the list of interfaces is empty, we've tried too quickly. Assume enabled, but don't cache the result - if (!if_cnt) return true; + if (!if_cnt) return 1; ipvn_enabled = found ? 1 : 0; #else