From ad8ef228d5b013ef781597d28ee7d6479b3748dd Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 19 Jul 2020 10:08:26 -0700 Subject: [PATCH] Fix double-close of connection handle on failure --- mist/mist.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mist/mist.cpp b/mist/mist.cpp index 5d0fced..9ab01be 100644 --- a/mist/mist.cpp +++ b/mist/mist.cpp @@ -597,7 +597,6 @@ PortTestStatus TestHttpPort(PSOCKADDR_STORAGE addr, int port, bool isLoopbackRel port == 47984 ? WINHTTP_FLAG_SECURE : 0); if (hConnection == nullptr) { fprintf(LOG_OUT, "WinHttpOpenRequest() failed: %d\n", GetLastError()); - WinHttpCloseHandle(hConnection); result = PortTestError; goto Exit; }