diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-03-10 03:52:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-03-10 03:52:00 +0000 |
commit | 5c39a67d4fc76d8d1ba6cd530042c52d4b40c810 (patch) | |
tree | f1971ffe6d8393efb5c5e5bf95cf8c80bf329b11 /sys/netinet | |
parent | 603964f9d9dddd655e27862ba907af3c356f745e (diff) |
cleared wrong amount of memory in skipjack zerokey, causes bigtime crashes
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_xform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_xform.c b/sys/netinet/ip_xform.c index 066992e2eb6..144dc098356 100644 --- a/sys/netinet/ip_xform.c +++ b/sys/netinet/ip_xform.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_xform.c,v 1.5 2000/01/27 08:09:12 angelos Exp $ */ +/* $OpenBSD: ip_xform.c,v 1.6 2000/03/10 03:51:59 deraadt Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -276,7 +276,7 @@ skipjack_zerokey(u_int8_t **sched) bzero(((u_int8_t **)(*sched))[k], 0x100); FREE(((u_int8_t **)(*sched))[k], M_XDATA); } - bzero(*sched, sizeof(cast_key)); + bzero(*sched, 10 * sizeof(u_int8_t *)); FREE(*sched, M_XDATA); *sched = NULL; } |