r6522: I have no idea why this change was made, but it not only breaks
authorAndrew Bartlett <abartlet@samba.org>
Sat, 30 Apr 2005 08:09:47 +0000 (08:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:22 +0000 (13:16 -0500)
connections to Win2k3, it doesn't match the well-known behaviour from
samba3.

Andrew Bartlett

source/auth/ntlmssp/ntlmssp_client.c

index df5cbab52489bd3fe882f01c6b76e05406285aa0..8bbeb744902762809317110639f9e95ae8fca27e 100644 (file)
@@ -177,7 +177,6 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security,
        password = cli_credentials_get_password(gensec_security->credentials);
 
        if (!password) {
-               static const uint8_t zero[1];
                static const uint8_t zeros[16];
                /* do nothing - blobs are zero length */
 
@@ -185,7 +184,7 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security,
                session_key = data_blob_talloc(gensec_ntlmssp_state, zeros, 16);
                lm_session_key = data_blob_talloc(gensec_ntlmssp_state, zeros, 16);
 
-               lm_response = data_blob_talloc(gensec_ntlmssp_state, zero, 1);
+               lm_response = data_blob(NULL, 0);
                nt_response = data_blob(NULL, 0);
                
                /* not doing NLTM2 without a password */