sizeof is used incorrectly in DES3_random_to_key()

from OpenBSD via Jonathan Gray <jsg@goblin.cx>
This commit is contained in:
Love Hörnquist Åstrand
2011-07-13 23:14:30 -07:00
parent 49cead6a58
commit 9bff431435

View File

@@ -202,7 +202,7 @@ _krb5_DES3_random_to_key(krb5_context context,
DES_cblock *k;
int i, j;
memset(x, 0, sizeof(x));
memset(key->keyvalue.data, 0, key->keyvalue.length);
for (i = 0; i < 3; ++i) {
unsigned char foo;
for (j = 0; j < 7; ++j) {