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:
Boris Popov 2001-08-21 08:07:18 +00:00
parent 0b9427de88
commit 31201790ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82036

View File

@ -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));
*/