summaryrefslogtreecommitdiff
path: root/kerberosV
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-05 19:38:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-05 19:38:33 +0000
commit2dad87a81ff1b5dd2f0d38bdf87044d76bd11676 (patch)
treee07fbca234527a0166000a6ed21186cd640fd9b6 /kerberosV
parent378e4ba80e4684a5329175a4914af37daf8d3184 (diff)
fix an incorrect memset use of sizeof
found by jsg, "looks right" tedu jsg
Diffstat (limited to 'kerberosV')
-rw-r--r--kerberosV/src/lib/krb5/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerberosV/src/lib/krb5/crypto.c b/kerberosV/src/lib/krb5/crypto.c
index 704dadec073..67750f63fa9 100644
--- a/kerberosV/src/lib/krb5/crypto.c
+++ b/kerberosV/src/lib/krb5/crypto.c
@@ -505,7 +505,7 @@ 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) {