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:
parent
bd62da641d
commit
c7dc361d6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340699
@ -300,6 +300,8 @@ ntp_sysctl(SYSCTL_HANDLER_ARGS)
|
|||||||
{
|
{
|
||||||
struct ntptimeval ntv; /* temporary structure */
|
struct ntptimeval ntv; /* temporary structure */
|
||||||
|
|
||||||
|
memset(&ntv, 0, sizeof(ntv));
|
||||||
|
|
||||||
NTP_LOCK();
|
NTP_LOCK();
|
||||||
ntp_gettime1(&ntv);
|
ntp_gettime1(&ntv);
|
||||||
NTP_UNLOCK();
|
NTP_UNLOCK();
|
||||||
|
Loading…
Reference in New Issue
Block a user