Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2018 00:59:42 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r340789 - stable/11/sys/kern
Message-ID:  <201811230059.wAN0xg5P042272@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Nov 23 00:59:42 2018
New Revision: 340789
URL: https://svnweb.freebsd.org/changeset/base/340789

Log:
  MFC r340699:
  Clear pad bytes in the struct exported by kern.ntp_pll.gettime.

Modified:
  stable/11/sys/kern/kern_ntptime.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_ntptime.c
==============================================================================
--- stable/11/sys/kern/kern_ntptime.c	Fri Nov 23 00:56:42 2018	(r340788)
+++ stable/11/sys/kern/kern_ntptime.c	Fri Nov 23 00:59:42 2018	(r340789)
@@ -300,6 +300,8 @@ ntp_sysctl(SYSCTL_HANDLER_ARGS)
 {
 	struct ntptimeval ntv;	/* temporary structure */
 
+	memset(&ntv, 0, sizeof(ntv));
+
 	NTP_LOCK();
 	ntp_gettime1(&ntv);
 	NTP_UNLOCK();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811230059.wAN0xg5P042272>