diff options
author | Martin Willi <martin@revosec.ch> | 2014-06-19 11:09:20 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-19 11:09:20 +0200 |
commit | b384daafde219b9f29e1fd737e433057d5fe5899 (patch) | |
tree | ec7ecd434cec6469c67ae2f09f9a22a2fdaa5add | |
parent | 9f950af17a423323e79b2f3e389c5cac86b8292b (diff) | |
download | strongswan-b384daafde219b9f29e1fd737e433057d5fe5899.tar.bz2 strongswan-b384daafde219b9f29e1fd737e433057d5fe5899.tar.xz |
winhttp: Fix a typo to properly release connection handle
Fixes a rather large memory leak in HTTP fetches.
-rw-r--r-- | src/libstrongswan/plugins/winhttp/winhttp_fetcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index 4a822bd9e..6ab866234 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 { |