aboutsummaryrefslogtreecommitdiffstats
path: root/api/adapter.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-17 16:27:11 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-17 16:27:11 +0100
commita9f8b2b764ff8a93f2bc7e7994d649cc313a3081 (patch)
tree85af0db2fb1b8e652e20a8f2024394ce57cd4961 /api/adapter.c
parentapi: retry on ERROR_TRANSACTION_NOT_ACTIVE when disabling dead GW detect (diff)
downloadwintun-a9f8b2b764ff8a93f2bc7e7994d649cc313a3081.tar.xz
wintun-a9f8b2b764ff8a93f2bc7e7994d649cc313a3081.zip
api: do not make dead gateway detection failures fatal0.9.1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/adapter.c')
-rw-r--r--api/adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/adapter.c b/api/adapter.c
index 8cbd76d..a5fce7e 100644
--- a/api/adapter.c
+++ b/api/adapter.c
@@ -1524,7 +1524,7 @@ static _Return_type_success_(return != NULL) WINTUN_ADAPTER *CreateAdapter(
RegCloseKey(TcpipInterfaceRegKey);
if (LastError == ERROR_SUCCESS)
break;
- if (LastError != ERROR_TRANSACTION_NOT_ACTIVE || Tries == 299)
+ if (LastError != ERROR_TRANSACTION_NOT_ACTIVE)
{
LOG_ERROR(L"Failed to set EnableDeadGWDetect", LastError);
goto cleanupTcpipAdapterRegKey;