Module: wine Branch: master Commit: 506ba701bb37f980793a55aacbfd9393cc010533 URL: http://source.winehq.org/git/wine.git/?a=commit;h=506ba701bb37f980793a55aacb...
Author: Rob Shearman rob@codeweavers.com Date: Fri Jan 25 14:05:34 2008 +0000
secur32: If using cached credentials failed in InitializeSecurityContext then fail with SEC_E_NO_CREDENTIALS instead of carrying on with a blank password.
---
dlls/secur32/ntlm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
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 @@ 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);