mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue