summaryrefslogtreecommitdiff
path: root/sys/kern/kern_ktrace.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-11 20:34:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-11 20:34:05 +0000
commit7a0fff140d155f5260317768368ada7c8fe6a464 (patch)
treec951ed1c70f1acdd728dbedfed3bd39bc8f93859 /sys/kern/kern_ktrace.c
parentef10593705378602083e05c7d452024807335951 (diff)
do not copyout uninitialized memory; arnej@math.ntnu.no
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r--sys/kern/kern_ktrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index 44989e40f10..d08e09a840d 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_ktrace.c,v 1.10 1998/06/02 14:50:47 csapuntz Exp $ */
+/* $OpenBSD: kern_ktrace.c,v 1.11 1999/02/11 20:34:04 deraadt Exp $ */
/* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */
/*
@@ -67,6 +67,7 @@ ktrgetheader(type)
MALLOC(kth, struct ktr_header *, sizeof (struct ktr_header),
M_TEMP, M_WAITOK);
+ bzero(kth, sizeof (struct ktr_header));
kth->ktr_type = type;
microtime(&kth->ktr_time);
kth->ktr_pid = p->p_pid;