summaryrefslogtreecommitdiff
path: root/source4/auth/ntlmssp
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-04-30 08:09:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:22 -0500
commitd3481b160c1ae4e77b202739df562d0961f6e259 (patch)
treefbde6a6e0f68dca457ad66203edcc3d8b43f4416 /source4/auth/ntlmssp
parentcba367d0011b0a752ed7ddf6db3e28701c9860c3 (diff)
downloadsamba-d3481b160c1ae4e77b202739df562d0961f6e259.tar.gz
samba-d3481b160c1ae4e77b202739df562d0961f6e259.tar.bz2
samba-d3481b160c1ae4e77b202739df562d0961f6e259.zip
r6522: I have no idea why this change was made, but it not only breaks
connections to Win2k3, it doesn't match the well-known behaviour from samba3. Andrew Bartlett (This used to be commit 99c9afe45a345e78d7492fe01463922460d66e99)
Diffstat (limited to 'source4/auth/ntlmssp')
-rw-r--r--source4/auth/ntlmssp/ntlmssp_client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/auth/ntlmssp/ntlmssp_client.c b/source4/auth/ntlmssp/ntlmssp_client.c
index df5cbab524..8bbeb74490 100644
--- a/source4/auth/ntlmssp/ntlmssp_client.c
+++ b/source4/auth/ntlmssp/ntlmssp_client.c
@@ -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 */