[SCM] Samba Shared Repository - branch master updated

Kai Blin kai at samba.org
Sat Nov 21 00:24:58 MST 2009


The branch, master has been updated
       via  43ed7a4... ntlm_auth: use data_blob_talloc() to allocate session key
      from  54ba3f5... 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.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 43ed7a413dec10adc8cc4ede09132441b5ba2267
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.

-----------------------------------------------------------------------

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