From 3d87c1a2444c3b9267e0dda7a2da77657fba143e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 20 Nov 2001 23:20:00 +0000 Subject: Fixed sizeof vs array length bug in make_user_info_winbind_crap() Spelling fix. --- source/auth/auth_util.c | 4 ++-- source/smbd/auth_util.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index e6ce7d186e7..16efdbc54e2 100644 --- a/source/auth/auth_util.c +++ b/source/auth/auth_util.c @@ -473,7 +473,7 @@ BOOL make_user_info_winbind(auth_usersupplied_info **user_info, /**************************************************************************** Create an auth_usersupplied_data, making the DATA_BLOBs here. - Decrupt and encrypt the passwords. + Decrypt and encrypt the passwords. ****************************************************************************/ BOOL make_user_info_winbind_crap(auth_usersupplied_info **user_info, @@ -484,7 +484,7 @@ BOOL make_user_info_winbind_crap(auth_usersupplied_info **user_info, uchar *nt_network_pwd, int nt_pwd_len) { BOOL ret; - DATA_BLOB sec_blob = data_blob(chal, sizeof(chal)); + DATA_BLOB sec_blob = data_blob(chal, 8); DATA_BLOB lm_blob = data_blob(lm_network_pwd, lm_pwd_len); DATA_BLOB nt_blob = data_blob(nt_network_pwd, nt_pwd_len); DATA_BLOB plaintext_blob = data_blob(NULL, 0); diff --git a/source/smbd/auth_util.c b/source/smbd/auth_util.c index e6ce7d186e7..16efdbc54e2 100644 --- a/source/smbd/auth_util.c +++ b/source/smbd/auth_util.c @@ -473,7 +473,7 @@ BOOL make_user_info_winbind(auth_usersupplied_info **user_info, /**************************************************************************** Create an auth_usersupplied_data, making the DATA_BLOBs here. - Decrupt and encrypt the passwords. + Decrypt and encrypt the passwords. ****************************************************************************/ BOOL make_user_info_winbind_crap(auth_usersupplied_info **user_info, @@ -484,7 +484,7 @@ BOOL make_user_info_winbind_crap(auth_usersupplied_info **user_info, uchar *nt_network_pwd, int nt_pwd_len) { BOOL ret; - DATA_BLOB sec_blob = data_blob(chal, sizeof(chal)); + DATA_BLOB sec_blob = data_blob(chal, 8); DATA_BLOB lm_blob = data_blob(lm_network_pwd, lm_pwd_len); DATA_BLOB nt_blob = data_blob(nt_network_pwd, nt_pwd_len); DATA_BLOB plaintext_blob = data_blob(NULL, 0); -- cgit