From db5745c0016d0898e0adc7df40164098b4fb4387 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 14 Mar 2008 18:09:20 +0000 Subject: [PATCH] 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. --- dlls/wininet/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index f2fa994c59a..d02217a22c3 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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; }