Clear pad bytes in the struct exported by kern.ntp_pll.gettime.

Reported by:	Thomas Barabosch, Fraunhofer FKIE
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2018-11-20 20:32:10 +00:00
parent bd62da641d
commit c7dc361d6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340699

View File

@ -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();