diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/crypto/krb/checksum/confounder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/checksum/confounder.c b/src/lib/crypto/krb/checksum/confounder.c index e8c6bd9c4..6429a195f 100644 --- a/src/lib/crypto/krb/checksum/confounder.c +++ b/src/lib/crypto/krb/checksum/confounder.c @@ -45,7 +45,7 @@ mk_xorkey(krb5_key origkey, krb5_key *xorkey) if (xorbytes == NULL) return ENOMEM; memcpy(xorbytes, origkey->keyblock.contents, origkey->keyblock.length); - for (i = 0; i < sizeof(xorbytes); i++) + for (i = 0; i < origkey->keyblock.length; i++) xorbytes[i] ^= 0xf0; /* Do a shallow copy here. */ |
