mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Fixed *nasty* bug in nt_lm_owf_gen() - this function was
not ensuring a zero filled buffer before doing crypto stuff. See PR#10121. Beware of this ! Jeremy. (This used to be commit c42fb702b70f18dfe3b97ce7ea24c4ce4b3f890f)
This commit is contained in:
parent
85fcbcb215
commit
53033c081a
@ -101,7 +101,9 @@ void E_md4hash(uchar *passwd, uchar *p16)
|
|||||||
void nt_lm_owf_gen(char *pwd, uchar nt_p16[16], uchar p16[16])
|
void nt_lm_owf_gen(char *pwd, uchar nt_p16[16], uchar p16[16])
|
||||||
{
|
{
|
||||||
char passwd[130];
|
char passwd[130];
|
||||||
StrnCpy(passwd, pwd, sizeof(passwd)-1);
|
|
||||||
|
memset(passwd,'\0',130);
|
||||||
|
safe_strcpy( passwd, pwd, sizeof(passwd)-1);
|
||||||
|
|
||||||
/* Calculate the MD4 hash (NT compatible) of the password */
|
/* Calculate the MD4 hash (NT compatible) of the password */
|
||||||
memset(nt_p16, '\0', 16);
|
memset(nt_p16, '\0', 16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user