secur32: Use empty credentials when cached creds fail.

This commit is contained in:
Kai Blin 2009-11-07 11:27:54 +01:00 committed by Alexandre Julliard
parent a61044b675
commit e987ec4299
2 changed files with 1 additions and 3 deletions

View File

@ -659,8 +659,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
if(!strncmp(buffer, "PW", 2))
{
TRACE("Using cached credentials failed.\n");
ret = SEC_E_NO_CREDENTIALS;
goto isc_end;
lstrcpynA(buffer, "PW AA==", max_len-1);
}
else /* Just do a noop on the next run */
lstrcpynA(buffer, "OK", max_len-1);

View File

@ -1309,7 +1309,6 @@ static void test_null_auth_data(void)
status = pInitializeSecurityContextA(&cred, NULL, (SEC_CHAR *)user,
ISC_REQ_CONNECTION, 0, SECURITY_NETWORK_DREP,
NULL, 0, &ctx, &buffer_desc, &attr, &ttl);
todo_wine
ok(status == SEC_I_CONTINUE_NEEDED, "InitializeSecurityContextA failed %s\n", getSecError(status));
}