summaryrefslogtreecommitdiff
path: root/ACE/ace/Sock_Connect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Sock_Connect.cpp')
-rw-r--r--ACE/ace/Sock_Connect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/Sock_Connect.cpp b/ACE/ace/Sock_Connect.cpp
index 26118d5629f..2fb0da0ffa1 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