DragonFlyBSD Kernel Audit
DF-0077 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -209,6 +209,7 @@
 	struct timespec atv;	/* nanosecond time */
 	int error;
 
+	bzero(&ntv, sizeof(ntv));
 	lockmgr(&ntp_lock, LK_EXCLUSIVE);
 
 	nanotime(&atv);