artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f37401
)
cleared wrong amount of memory in skipjack zerokey, causes bigtime crashes
author
deraadt
<deraadt@openbsd.org>
Fri, 10 Mar 2000 03:51:59 +0000
(
03:51
+0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 10 Mar 2000 03:51:59 +0000
(
03:51
+0000)
sys/netinet/ip_xform.c
patch
|
blob
|
history
diff --git
a/sys/netinet/ip_xform.c
b/sys/netinet/ip_xform.c
index
066992e
..
144dc09
100644
(file)
--- 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;
}