Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Mitz <[email protected]>
  • Loading branch information
simpsont-oci and mitza-oci authored May 13, 2021
1 parent 04d70c6 commit eef3315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ACE/ace/Sock_Connect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eef3315

Please sign in to comment.