Commit 506ba701 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

secur32: If using cached credentials failed in InitializeSecurityContext then…

secur32: If using cached credentials failed in InitializeSecurityContext then fail with SEC_E_NO_CREDENTIALS instead of carrying on with a blank password.
parent 72ffc3fa
......@@ -571,8 +571,9 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
/* If the helper replied with "PW", using cached credentials failed */
if(!strncmp(buffer, "PW", 2))
{
TRACE("Using cached credentials failed. Using empty password.\n");
lstrcpynA(buffer, "PW AA==", max_len-1);
TRACE("Using cached credentials failed.\n");
ret = SEC_E_NO_CREDENTIALS;
goto isc_end;
}
else /* Just do a noop on the next run */
lstrcpynA(buffer, "OK", max_len-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment