From eef33151c45ae1826b346c0acbb03fca2f843cf6 Mon Sep 17 00:00:00 2001 From: Timothy Simpson Date: Thu, 13 May 2021 14:29:01 -0500 Subject: Apply suggestions from code review Co-authored-by: Adam Mitz --- ACE/ace/Sock_Connect.cpp | 4 ++-- 1 file 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 -- cgit v1.2.1