wininet: If we receive an error from InitializeSecurityContext in HTTP_DoAuthorization then set pAuthInfo->finished so that we don't carry on using the security context.

This commit is contained in:
Rob Shearman 2008-03-14 18:09:20 +00:00 committed by Alexandre Julliard
parent e74514b138
commit db5745c001
1 changed files with 1 additions and 0 deletions

View File

@ -599,6 +599,7 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue,
else
{
ERR("InitializeSecurityContextW returned error 0x%08x\n", sec_status);
pAuthInfo->finished = TRUE;
HeapFree(GetProcessHeap(), 0, out.pvBuffer);
return FALSE;
}