Fix small mistake (sizeof(pad2) instead of sizeof(pad1))

Approved by:	glebius (mentor)
This commit is contained in:
Alexander Motin 2007-05-04 15:44:22 +00:00
parent d3abf70e1b
commit 592009a347

View File

@ -784,7 +784,7 @@ ng_mppc_getkey(const u_char *h, u_char *h2, int len)
SHA1Init(&c);
SHA1Update(&c, h, len);
for (k = 0; k < 4; k++)
SHA1Update(&c, pad1, sizeof(pad2));
SHA1Update(&c, pad1, sizeof(pad1));
SHA1Update(&c, h2, len);
for (k = 0; k < 4; k++)
SHA1Update(&c, pad2, sizeof(pad2));