Skip to content

Commit

Permalink
since we're not returning the value of recursing, switch to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
simpsont-oci committed May 14, 2021
1 parent eef3315 commit bd42ac3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ACE/ace/Sock_Connect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ ip_check (int &ipvn_enabled, int pf)
{

#if defined (ACE_WIN32)
static int recursing = 0;
static bool recursing = false;
if (recursing) return 1;

// as of the release of Windows 2008, even hosts that have IPv6 interfaces disabled
Expand All @@ -1484,9 +1484,9 @@ ip_check (int &ipvn_enabled, int pf)
size_t if_cnt = 0;

// assume enabled to avoid recursion during interface lookup.
recursing = 1;
recursing = true;
ACE::get_ip_interfaces (if_cnt, if_addrs);
recursing = 0;
recursing = false;

bool found = false;
for (size_t i = 0; !found && i < if_cnt; i++)
Expand Down

0 comments on commit bd42ac3

Please sign in to comment.