secur32: If using cached credentials failed in InitializeSecurityContext then fail with SEC_E_NO_CREDENTIALS instead of carrying on with a blank password.
diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c index 7cb83ec..423a167 100644 --- a/dlls/secur32/ntlm.c +++ b/dlls/secur32/ntlm.c
@@ -571,8 +571,9 @@ /* 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);