From: Martin Willi Date: Thu, 19 Jun 2014 09:09:20 +0000 (+0200) Subject: winhttp: Fix a typo to properly release connection handle X-Git-Tag: 5.2.0rc1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b384daafde219b9f29e1fd737e433057d5fe5899;p=thirdparty%2Fstrongswan.git winhttp: Fix a typo to properly release connection handle Fixes a rather large memory leak in HTTP fetches. --- diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index 4a822bd9e4..6ab8662340 100644 --- a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c +++ b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c @@ -280,7 +280,7 @@ METHOD(fetcher_t, fetch, status_t, { DBG1(DBG_LIB, "opening request failed: %u", GetLastError()); } - WinHttpCloseHandle(connect); + WinHttpCloseHandle(connection); } else {