[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Fri May 21 15:19:13 MDT 2010


The branch, master has been updated
       via  366333c... Fix bug #7448 - smbd crash when sambaLMPassword and sambaNTPassword entries missing from ldap.
      from  efb2922... Make krb5 over SMB2 identical to the way we handle it in SMB1.

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


- Log -----------------------------------------------------------------
commit 366333c08fe1d26276a90391dcec0526a65cb2a2
Author: Roel van Meer <rolek at bokxing.nl>
Date:   Fri May 21 14:17:17 2010 -0700

    Fix bug #7448 - smbd crash when sambaLMPassword and sambaNTPassword entries missing from ldap.
    
    Protect SMBsesskeygen_ntv1() from a NULL pointer.

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

Summary of changes:
 source3/auth/check_samsec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/check_samsec.c b/source3/auth/check_samsec.c
index bd8cb4b..db2bde7 100644
--- a/source3/auth/check_samsec.c
+++ b/source3/auth/check_samsec.c
@@ -78,6 +78,9 @@ static NTSTATUS sam_password_ok(TALLOC_CTX *mem_ctx,
 	}
 
 	if (client_lm_hash || client_nt_hash) {
+		if (!nt_pw) {
+			return NT_STATUS_WRONG_PASSWORD;
+		}
 		*user_sess_key = data_blob_talloc(mem_ctx, NULL, 16);
 		if (!user_sess_key->data) {
 			return NT_STATUS_NO_MEMORY;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list