Fix an old off-by-one error causing well known 'wrong bucket' panic.
Submitted by: Conrad Minshall <conrad@mac.com> MFC after: 1 week
This commit is contained in:
parent
0b9427de88
commit
31201790ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82036
@ -120,7 +120,7 @@ smb_ntencrypt(const u_char *apwd, u_char *C8, u_char *RN)
|
||||
int len;
|
||||
|
||||
len = strlen(apwd);
|
||||
unipwd = malloc(len * sizeof(u_int16_t), M_SMBTEMP, M_WAITOK);
|
||||
unipwd = malloc((len + 1) * sizeof(u_int16_t), M_SMBTEMP, M_WAITOK);
|
||||
/*
|
||||
* S21 = concat(MD4(U(apwd)), zeros(5));
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user