summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Simpson <simpsont@objectcomputing.com>2021-05-13 14:29:01 -0500
committerGitHub <noreply@github.com>2021-05-13 14:29:01 -0500
commiteef33151c45ae1826b346c0acbb03fca2f843cf6 (patch)
treea216f0f6846cba9449e95924f68f91e99be59f11
parent04d70c6c157074e053e4040d2d869c972be39eff (diff)
downloadATCD-eef33151c45ae1826b346c0acbb03fca2f843cf6.tar.gz
Apply suggestions from code review
Co-authored-by: Adam Mitz <mitza@objectcomputing.com>
-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