From 578243a40087b5152a21a512454c599d998ab552 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 10 Mar 2000 03:51:59 +0000 Subject: [PATCH] cleared wrong amount of memory in skipjack zerokey, causes bigtime crashes --- sys/netinet/ip_xform.c | 4 ++-- 1 file 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; } -- 2.20.1