From a9f8b2b764ff8a93f2bc7e7994d649cc313a3081 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 17 Nov 2020 16:27:11 +0100 Subject: api: do not make dead gateway detection failures fatal Signed-off-by: Jason A. Donenfeld --- api/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-59-g8ed1b