From 98fb747aa9a2d04cbb676ef6ee4a4e91fbad1a68 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Sat, 17 Jul 2010 14:08:11 +0200 Subject: [PATCH] wininet: Delete authorization data on unsucessful login. --- dlls/wininet/http.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index fc6e351e757..57c4f7563b7 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3621,6 +3621,12 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders, break; } } + + if(!loop_next) { + TRACE("Cleaning wrong authorization data\n"); + destroy_authinfo(lpwhr->pAuthInfo); + lpwhr->pAuthInfo = NULL; + } } if (dwStatusCode == HTTP_STATUS_PROXY_AUTH_REQ) { @@ -3637,6 +3643,12 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders, break; } } + + if(!loop_next) { + TRACE("Cleaning wrong proxy authorization data\n"); + destroy_authinfo(lpwhr->pProxyAuthInfo); + lpwhr->pProxyAuthInfo = NULL; + } } } } -- 2.11.4.GIT