[SCM] Samba Shared Repository - branch v3-5-test updated

Karolin Seeger kseeger at samba.org
Wed Jun 16 08:12:32 MDT 2010


The branch, v3-5-test has been updated
       via  a95df86... s3-auth: in make_user_info_for_reply_enc make sure to check length and data pointer of nt and lm hash.
      from  286f4b5... s3-spoolss: fix some crash bugs and missing error codes in AddDriver paths.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit a95df865d474b0ba59ad95dcb8c20c923c66f4ba
Author: Günther Deschner <gd at samba.org>
Date:   Wed Jun 16 14:18:45 2010 +0200

    s3-auth: in make_user_info_for_reply_enc make sure to check length and data pointer of nt and lm hash.
    
    This fixes kernel cifs client with sec=ntlmv2.
    
    Guenther
    (cherry picked from commit b4364add896d1657263a66c55d867d28bf5ceb1b)
    
    Fix bug #7517 (session setup from linux kernel cifs client fails with
    sec=ntlmv2).

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

Summary of changes:
 source3/auth/auth_util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 8167a80..3fa7224 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -468,8 +468,8 @@ NTSTATUS make_user_info_for_reply_enc(auth_usersupplied_info **user_info,
 	return make_user_info_map(user_info, smb_name, 
 				  client_domain, 
 				  get_remote_machine_name(), 
-				  lm_resp.data ? &lm_resp : NULL, 
-				  nt_resp.data ? &nt_resp : NULL, 
+				  lm_resp.data && (lm_resp.length > 0) ? &lm_resp : NULL,
+				  nt_resp.data && (nt_resp.length > 0) ? &nt_resp : NULL,
 				  NULL, NULL, NULL,
 				  True);
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list