From 5edcf3ab6c333a1a5046651080a3bd67bb2b8dc2 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 24 Jan 2008 19:30:11 +0000 Subject: [PATCH] wininet: Pass the server name into InitializeSecurityContextW. --- dlls/wininet/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 50d61dac30..16e1ec71c3 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -561,7 +561,8 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue, out_desc.pBuffers = &out; sec_status = InitializeSecurityContextW(first ? &pAuthInfo->cred : NULL, - first ? NULL : &pAuthInfo->ctx, NULL, + first ? NULL : &pAuthInfo->ctx, + first ? lpwhr->lpHttpSession->lpszServerName : NULL, context_req, 0, SECURITY_NETWORK_DREP, in.pvBuffer ? &in_desc : NULL, 0, &pAuthInfo->ctx, &out_desc,