wininet: Delete authorization data on unsucessful login.

This commit is contained in:
Piotr Caban 2010-07-17 14:08:11 +02:00 committed by Alexandre Julliard
parent 3cfc7132be
commit 98fb747aa9
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}
}
}
}