use offset to go over the array.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23237 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-06-01 22:26:24 +00:00
parent e9662cad42
commit b127d90367

View File

@@ -588,9 +588,9 @@ ARCFOUR_string_to_key(krb5_context context,
MD4_Init (&m);
for (i = 0; i < len; i++) {
unsigned char p;
p = (s[0] & 0xff);
p = (s[i] & 0xff);
MD4_Update (&m, &p, 1);
p = (s[0] >> 8) & 0xff;
p = (s[i] >> 8) & 0xff;
MD4_Update (&m, &p, 1);
}