[SCM] Samba Shared Repository - branch v3-5-test updated
Kai Blin
kai at samba.org
Sat Nov 21 00:28:07 MST 2009
The branch, v3-5-test has been updated
via 7301c6d... ntlm_auth: use data_blob_talloc() to allocate session key
from cfb84c6... Fix logic bug where high bits tests was being done on both Windows and POSIX mkdirs instead of only on Windows mkdir (as intended). The variable "file_attributes" had already had FILE_FLAG_POSIX_SEMANTICS removed above in the function if it had already been set. Jeremy. (cherry picked from commit 54ba3f522bd26919183278643b417e9632524be9)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test
- Log -----------------------------------------------------------------
commit 7301c6deef3241dd9d0a03cfcd1153a958908c19
Author: Kai Blin <kai at samba.org>
Date: Wed Nov 18 11:26:57 2009 +0100
ntlm_auth: use data_blob_talloc() to allocate session key
Thanks to Shibu Piriyath <shibunair80 at ymail.com> for spotting the issue.
(cherry picked from commit 43ed7a413dec10adc8cc4ede09132441b5ba2267)
-----------------------------------------------------------------------
Summary of changes:
source3/utils/ntlm_auth.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 2a7e18c..6e813f4 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -579,13 +579,13 @@ static NTSTATUS winbind_pw_check(struct ntlmssp_state *ntlmssp_state, DATA_BLOB
if (NT_STATUS_IS_OK(nt_status)) {
if (memcmp(lm_key, zeros, 8) != 0) {
- *lm_session_key = data_blob(NULL, 16);
+ *lm_session_key = data_blob_talloc(ntlmssp_state, NULL, 16);
memcpy(lm_session_key->data, lm_key, 8);
memset(lm_session_key->data+8, '\0', 8);
}
if (memcmp(user_sess_key, zeros, 16) != 0) {
- *user_session_key = data_blob(user_sess_key, 16);
+ *user_session_key = data_blob_talloc(ntlmssp_state, user_sess_key, 16);
}
ntlmssp_state->auth_context = talloc_strdup(ntlmssp_state,
unix_name);
--
Samba Shared Repository
More information about the samba-cvs
mailing list