summaryrefslogtreecommitdiff
path: root/sys/crypto
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-08-16 22:47:26 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-08-16 22:47:26 +0000
commitea995d5cf38e08e77f4437a52ce115624bdd05ca (patch)
treea2468f9fadcaffe658f7c486fa3b7a0402cdd765 /sys/crypto
parent78c3a9d5ed86561b165c2b3d35907bac9ba661f7 (diff)
fix size in MALLOC/bzero call, from sam@errno.com, ok deraadt@
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/xform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/xform.c b/sys/crypto/xform.c
index 6170d901553..9c7cab74352 100644
--- a/sys/crypto/xform.c
+++ b/sys/crypto/xform.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xform.c,v 1.18 2002/04/22 23:10:09 deraadt Exp $ */
+/* $OpenBSD: xform.c,v 1.19 2002/08/16 22:47:25 dhartmei Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -317,8 +317,8 @@ cast5_decrypt(caddr_t key, u_int8_t *blk)
void
cast5_setkey(u_int8_t **sched, u_int8_t *key, int len)
{
- MALLOC(*sched, u_int8_t *, sizeof(blf_ctx), M_CRYPTO_DATA, M_WAITOK);
- bzero(*sched, sizeof(blf_ctx));
+ MALLOC(*sched, u_int8_t *, sizeof(cast_key), M_CRYPTO_DATA, M_WAITOK);
+ bzero(*sched, sizeof(cast_key));
cast_setkey((cast_key *)*sched, key, len);
}