[SCM] Samba Shared Repository - branch master updated - ff98d7f9ce1213aeff3d196d8f415303974ffd77

Andrew Bartlett abartlet at samba.org
Thu Dec 18 21:20:36 GMT 2008


The branch, master has been updated
       via  ff98d7f9ce1213aeff3d196d8f415303974ffd77 (commit)
      from  21702bfcdece4e71dcb4ab50e111911a5777f9a5 (commit)

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


- Log -----------------------------------------------------------------
commit ff98d7f9ce1213aeff3d196d8f415303974ffd77
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Fri Dec 19 08:18:57 2008 +1100

    Fix failures setting a random password
    
    The test in extract_pw_from_buffer was incorrect: It tested if the
    first byte of the new password was 0 (a 1/256 chance for the random
    passwords), not if the password was allocated.
    
    Andrew Bartlett

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

Summary of changes:
 source4/libcli/auth/smbencrypt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/libcli/auth/smbencrypt.c b/source4/libcli/auth/smbencrypt.c
index b902ddd..bbb363e 100644
--- a/source4/libcli/auth/smbencrypt.c
+++ b/source4/libcli/auth/smbencrypt.c
@@ -585,7 +585,7 @@ bool extract_pw_from_buffer(TALLOC_CTX *mem_ctx,
 
 	*new_pass = data_blob_talloc(mem_ctx, &in_buffer[512 - byte_len], byte_len);
 
-	if (!*new_pass->data) {
+	if (!new_pass->data) {
 		return false;
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list