Kai Blin : secur32: Use empty credentials when cached creds fail.

Alexandre Julliard julliard at winehq.org
Mon Nov 9 15:14:13 CST 2009


Module: wine
Branch: master
Commit: e987ec429945483908182490a0df12483f443b1c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e987ec429945483908182490a0df12483f443b1c

Author: Kai Blin <kai.blin at gmail.com>
Date:   Sat Nov  7 11:27:54 2009 +0100

secur32: Use empty credentials when cached creds fail.

---

 dlls/secur32/ntlm.c       |    3 +--
 dlls/secur32/tests/ntlm.c |    1 -
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c
index 7e44dd7..79f55e7 100644
--- a/dlls/secur32/ntlm.c
+++ b/dlls/secur32/ntlm.c
@@ -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);
diff --git a/dlls/secur32/tests/ntlm.c b/dlls/secur32/tests/ntlm.c
index b7c5105..2a66cf6 100644
--- a/dlls/secur32/tests/ntlm.c
+++ b/dlls/secur32/tests/ntlm.c
@@ -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));
 }
 




More information about the wine-cvs mailing list