summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-05 21:24:27 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-05 21:24:27 +0000
commitcfa4469c1e1a323ac27b502596f88695f463a738 (patch)
tree677edfc11eaec74cf24400ab89b786c33b909db8 /source3
parent0014a051ee2aafa17daf1a63130401ed6c60a663 (diff)
downloadsamba-cfa4469c1e1a323ac27b502596f88695f463a738.tar.gz
samba-cfa4469c1e1a323ac27b502596f88695f463a738.tar.bz2
samba-cfa4469c1e1a323ac27b502596f88695f463a738.zip
Fix more cases to ensure that as a server, we don't complain to the client
about our server-side lack of session key. Andrew Bartlett (This used to be commit ba33f1e0d5fe2aed3e378c9c23511c0b4d6f7d14)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/ntlmssp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 95fd4c03e5..40d7f41109 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -680,7 +680,6 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state,
dump_data_pw("NTLM2 session key:\n", session_key.data, session_key.length);
} else {
- data_blob_free(&encrypted_session_key);
DEBUG(10,("ntlmssp_server_auth: Failed to create NTLM2 session key.\n"));
session_key = data_blob(NULL, 0);
}
@@ -699,7 +698,6 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state,
session_key = lm_session_key;
}
} else {
- data_blob_free(&encrypted_session_key);
DEBUG(10,("ntlmssp_server_auth: Failed to create NTLM session key.\n"));
session_key = data_blob(NULL, 0);
}
@@ -737,7 +735,7 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state,
encrypted_session_key.data,
encrypted_session_key.length);
dump_data_pw("KEY_EXCH session key:\n", encrypted_session_key.data,
- encrypted_session_key.length);
+ encrypted_session_key.length);
}
} else {
ntlmssp_state->session_key = session_key;