secur32: If using cached credentials failed in InitializeSecurityContext then fail with SEC_E_NO_CREDENTIALS instead of carrying on with a blank password.

This commit is contained in:
Rob Shearman 2008-01-25 14:05:34 +00:00 committed by Alexandre Julliard
parent 72ffc3fad9
commit 506ba701bb
1 changed files with 3 additions and 2 deletions

View File

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